ls_use="BACKUP DATABASE ["+serdb+"] TO DISK = N'"+ls_savetopath+"' WITH NOINIT , NOUNLOAD , NAME = N'"+"Ser源备份"+"', NOSKIP , STATS = 10, NOFORMAT "
在数据库备分里,这代码是什么意思
特别是那serbd 代表什么呢??
我全部的代码如下:
SQLCA.DBMS = "MSS Microsoft SQL Server 6.x"
sqlca.Database = "master"
//SQLCA.Database = "stu"
sqlca.LogPass = ""
SQLCA.ServerName = "KAI-38808B98C4B"
SQLCA.LogId = "dba"
sqlca.AutoCommit = true
sqlca.DBParm = ""
//connect using tempca;
COMMIT USING SQLCA ;
//desconnect using sqlca;
SetPointer(HourGlass!)//---开始备份---
string ls_use,ls_savetopath,serbd
ls_use="BACKUP DATABASE ["+serdb+"] TO DISK = N'"+ls_savetopath+"' WITH NOINIT , NOUNLOAD , NAME = N'"+"Ser源备份"+"', NOSKIP , STATS = 10, NOFORMAT "
EXECUTE IMMEDIATE : ls_use using sqlca;
IF sqlca.SQLCODE = -1 THEN
Messagebox("系统信息","~n~n账套数据交换失败!~r~n~n请检查路径正确与否。"+" ",Stopsign!)
RETURN
END IF