ini ada contoh sederhana mas,

dim dbFile as new SQLDMO.DBFile
dim dbLog as new SQLDMO.LogFile

dbFile.Name = "namaDB_Data"
dbFile.PhysicalName = "C:\NamaFolder\namaDB.mdf"
dbFile.PrimaryFile = True
dbFile.FilegrowthType=SQLDMOGrowth_MB
dbFile.FileGrowth = 1
dbFile.FileGroups("Primary").DBFiles.Add dbFile

dbLog.Name = "namaLog_Log"
dbLog.PhysicalName = "C:\NamaFolder\namaLog.ldf"
dbLog.TransactionLog.LogFiles.Add dbLog

salam
lis



 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

Kirim email ke