sp_detach

sp_detach

 

  

Ok, I am trying to detach a test database and when I execute the command


Exec sp_detach_db 'test2'

It tells me that the db is in use. Nobody is using it. What am I doing
wrong?

Brian

MS Sql Server LazyDBA home page