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.
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.