I see there are plenty of posts about how to copy database, I have worked with db files quite a lot.
without detaching the database and copying files etc, is there not a way it can be done with SQL query?
I have an app which I would like to adapt so that at startup it prompts the user to run a test copy instead of the live copy. To do this I would like to create a replica of the database with '_test' on the end of the database name. It would be very nice to be able to do this in a query without knowing the file names.
I am coding an exe using vb.net 2010 and running SQL Svr 2005 Workgroup edition.
Would I need to create the database and then For each Table in the source database, copy it to the new database?
Can anybody offer any advice on Database Copy methods please?
Thanks in advance to all
without detaching the database and copying files etc, is there not a way it can be done with SQL query?
I have an app which I would like to adapt so that at startup it prompts the user to run a test copy instead of the live copy. To do this I would like to create a replica of the database with '_test' on the end of the database name. It would be very nice to be able to do this in a query without knowing the file names.
I am coding an exe using vb.net 2010 and running SQL Svr 2005 Workgroup edition.
Would I need to create the database and then For each Table in the source database, copy it to the new database?
Can anybody offer any advice on Database Copy methods please?
Thanks in advance to all