添加文件数多于16个的数据库

CREATE DataBase HUAAN
ON(FILENAME = 'C:\huaAn20090515\DBMT60_Data0.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data1.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data2.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data3.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data4.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data5.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data6.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data7.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data8.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Data9.MDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log0.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log1.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log2.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log3.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log4.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log5.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log6.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log7.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log8.LDF'),
   (FILENAME = 'C:\huaAn20090515\DBMT60_Log9.LDF')  
FOR ATTACH

HUAAN:创建数据库名称;

'C:\huaAn20090515\*.*, 如'C:\huaAn20090515\DBMT60_Data0.MDF',是指你要加载的数据库文件;

你可能感兴趣的:(C++,c,C#)