Im getting this:
"Exclusive access could not be obtained because the database is in use. RESTORE DATABASE is terminating abnormally."
First the message told me i must connect to master db to execute the restore but i change it and i got the message above.
The parametrized sql statement im using is :
cmd.CommandText = "RESTORE DATABASE aguasdelbosque " + "FROM DISK = @archivo"
I will appreciated some of your help...