Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Create a copy of active database using T-SQL.

$
0
0

I have a requirement to create a copy of existing active (currently in use) database through code.

I need to copy all objects which include tables, stored procs, triggers, functions, foreign keys, constraints, primary keys, etc... from source DB to new DB.

Both databases can be in different servers where I have access to both the servers. I also need to copy data for some tables....

It is exactly what copy database wizard is doing... but I want to do it through T-SQL code.....

is it possible?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>