I'm trying to backup and restore a SQL7 database from a VB program using a SQL commands "BACKUP and RESTORE" via ADODB.connections.
To backup it no problems.
To restore a database it is necessary NO USER connected to the database.
I execute a RESTORE command using a connection to the MASTER database and it's ok if the VB program has not yet be connected.
I close all actives connection from my VB program before to restore, but it seems that there one connection opened because i got an Error message from SQLSERVER 7.
How to really kill all the actives ADODB.connections
Thanks.
To backup it no problems.
To restore a database it is necessary NO USER connected to the database.
I execute a RESTORE command using a connection to the MASTER database and it's ok if the VB program has not yet be connected.
I close all actives connection from my VB program before to restore, but it seems that there one connection opened because i got an Error message from SQLSERVER 7.
How to really kill all the actives ADODB.connections
Thanks.