strConn= "Server=xxx;DataBase=xxx;USERID=sa";PASSWORD=xxx";Timeout=30;"
Dim cnData As New SqlConnection(strConn)
cnData.Open()
Dim aName As String = "xxx"
Dim aCommand As New SqlCommand("BACKUP LOG xdbs TO DISK=N'" & Me.TextBoxAdr.Text & "\C_" & aName & ".bak' WITH NOFORMAT, NOINIT, NAME = N'xdbs-Transaction Log Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10", cnData)
aCommand.ExecuteNonQuery()
Zapoměla jsem napsat, že se jedná o SqlExpress 2005
|