Hi Experts ,
we are doing Sybase database Restore from last backup so we got below error
Error :-Database in use. A user with system administrator (SA) role must have exclusive use of database to run load
we done all below procedure :-
> isql -Usa -STST
>password :- ****
1> use master
2> go
1> load database TST from "D:\New folder\bkp14022015.dmp"
2> go
Msg 3101 level 16 state 1
Server "TST" line 1
Database in use. A user with system administrator (SA) role must have exclusive use of database to run load
After this i am try below suggetion from sap thread but still facing same issue.....
1) make sure your own session isn't using the database. Do a "use master" before issuing the LOAD command.
2) Check for other users that have the database as their current database. Run sp_who and look for the database name. Alternatively, run
select spid from master..sysprocesses where dbid = db_id("TST")
3) Check for users that are in other databases but accessing tables in TST in cross-database transactions by looking for locks held in TST by running
select spid from master..syslocks where dbid = db_id("TST")
Thanks in Advance
Regards
Ashish Chanekar