|
I want to implement the backup and restore function of MS-SQL database in VB. The backup is made ~~
Backup I called a stored procedure "back_cpxs" to backup, here is the code
Dim cnn As ADODB.Connection
Set cnn = New ADODB.Connection
cnn.Open ConnectString
cnn.Execute "exec back_cpxs '"&lujing&"'"
cnn.Close
When recovering the database, I also called the stored procedure recovery, but it was prompted that the current database is in use and cannot be recovered
How can I achieve database recovery? |
|