How can we detach /attach database in program?

  • Thread starter Thread starter ad
  • Start date Start date
Hi,

You might execute proper DDL statement just like you execute selects or
inserts or whatever.
But of course, it depends on the database - some databases provide helper
objects.
 
¤ Can we detach /attach database in program?
¤

Could you be more specific? What kind of database(s) are you working with?


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Not sure about 2005 but in 2000 there are two stored procedures you might
use:
sp_detach_db and sp_attach_db
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top