February 12, 2015 at 8:24 am
Hi - I have a database DB1 and DBTest
DBTest Database is empty. I want to copy all the objects in DB1 - schema1 how can I do that?
February 12, 2015 at 8:32 am
You can use cross database reference in the query, something like this...
USE TestDB
GO
INSERT INTO Table1
SELECT * FROM DB1.dbo.Table1
Do this for all tables one by one.
Or your database is small the you can refer this link
February 12, 2015 at 8:38 am
SmilingLily (2/12/2015)
Hi - I have a database DB1 and DBTestDBTest Database is empty. I want to copy all the objects in DB1 - schema1 how can I do that?
backup and restore the database would be the most obvious
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply