用VB备份MSSQL2005数据库,提示超时已过期是什么问题啊?
Dim DB As String
Dim conn As New adodb.Connection
Dim rec As New adodb.Recordset
Dim backupfilename As String
Dim b As String
backupfilename = "d:\db\twaaa.bak"
DB = "Driver={SQL Server};Server=127.0.0.1;Database=MYdb;uid=sa;pwd=123456;"
conn.Open DB
b = "backup database MYdb to disk='" & backupfilename & "'"
conn.Execute (b)
conn.Close