Sdh saya coba malah , programnya yg saya revisi error, mba li, mohon
pentunjuk,,,
yg jelas log sdh saya delete saya timbulkan tetep tdk bisa di attach .. :(
thx
Dim DBFile As New MASMI.DBFile
Dim dbLog As New SQLDMO.LOGFILE
Private Sub Command1_Click()
DBFile.Name = "MASMI_Data"
DBFile.PhysicalName = "C:\MASMI.mdf"
DBFile.PrimaryFile = True
DBFile.FilegrowthType = 50
DBFile.FileGrowth = 1
DBFile.FileGroups("Primary").DBFiles.Add DBFile
dbLog.Name = "MASMI_Log"
dbLog.PhysicalName = "C:\MASMI_LOG.ldf"
dbLog.TransactionLog.LogFiles.Add dbLog
End Sub
----- Original Message ----
From: Lilis Suryani <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, March 20, 2007 1:21:58 PM
Subject: Re: [Programmer-VB] Create database n Table, SQL Server
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.FilegrowthTy pe=SQLDMOGrowth_ MB
dbFile.FileGrowth = 1
dbFile.FileGroups( "Primary" ).DBFiles. Add dbFile
dbLog.Name = "namaLog_Log"
dbLog.PhysicalName = "C:\NamaFolder\ namaLog.ldf"
dbLog.TransactionLo g.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/
____________________________________________________________________________________
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front