我安裝的ms-sql2000客戶端,連接主機的數據庫,我想在客戶端備份數據庫到我的硬盤上,我的代碼是
sqlstr :=' backup database ' +Edit6.text ;
sqlstr :=sqlstr+' to disk= '+QuotedStr(Edit7.text); ADOCommand1.ConnectionString:='Provider=SQLOLEDB.1;Password='+EDIT3.TEXT+';Persist Security Info=True;User ID='+EDIT2.TEXT+';Initial Catalog=master;Data Source='+Edit1.TEXT+'';
ADOCommand1.CommandText:=sqlstr;
ADOCommand1.Execute;
其中edit6.text是要備份的數據庫,edit7.text是存儲的路徑,額edit3.text為登入數據庫的密碼,edit2.text為登入數據庫的用戶名,edit1.text為數據庫服務器名.
問題是無法開啓備份裝備
各位高手幫幫我!
sqlstr :=' backup database ' +Edit6.text ;
sqlstr :=sqlstr+' to disk= '+QuotedStr(Edit7.text); ADOCommand1.ConnectionString:='Provider=SQLOLEDB.1;Password='+EDIT3.TEXT+';Persist Security Info=True;User ID='+EDIT2.TEXT+';Initial Catalog=master;Data Source='+Edit1.TEXT+'';
ADOCommand1.CommandText:=sqlstr;
ADOCommand1.Execute;
其中edit6.text是要備份的數據庫,edit7.text是存儲的路徑,額edit3.text為登入數據庫的密碼,edit2.text為登入數據庫的用戶名,edit1.text為數據庫服務器名.
問題是無法開啓備份裝備
各位高手幫幫我!
感谢了!
右键单击共享的备份目录,选择"映射网络驱动器"