Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 script to copy entire database

Author  Topic 

nabajyoti
Starting Member

3 Posts

Posted - 2008-03-27 : 02:29:28
do we have any script to run so as to copy the exact database with data inside?

nr
SQLTeam MVY

12543 Posts

Posted - 2008-03-27 : 02:42:50
backup and restore is easiest - see the statements in bol.



==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

tahseenm
Yak Posting Veteran

64 Posts

Posted - 2008-05-21 : 11:46:12
What is the easy way to write a SQL script or use Enterprise Manager to copy the database within the SQL Server 2000 for testing purpose.

moetahsen
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-05-21 : 23:03:07
Schema only without data? Just right click the db in em and choose generate scripts.
Go to Top of Page

tosscrosby
Aged Yak Warrior

676 Posts

Posted - 2008-05-22 : 13:51:21
To include data, export it using DTS if nr's suggestion doesn't fill your needs. It's not a script but will do what you need.

Terry
Go to Top of Page
   

- Advertisement -