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
 
Back
Top