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
 General SQL Server Forums
 Script Library
 MSSQL 2000: copying database

Author  Topic 

wbb1975
Starting Member

23 Posts

Posted - 2006-10-04 : 06:44:27
Hi,

I am using MSSQL 2005 but we have to work in compatibility mode with MSSQL 2000 and also we are only allowed to use 2000-compatible features, now my question:

I need to programmatically copy a database within the same server (including all stored procs, triggers and tables, indices) ...

Can anybody give me a hint what is the best way for reaching this target??

Thanks a lot in advance

Greetings
Stefan

Kristen
Test

22859 Posts

Posted - 2006-10-04 : 06:54:39
If it was me I would work on a SQL2000 database, and Backup + Restore it to SQL2005 for testing.

That's probably no help though!

Kristen
Go to Top of Page

wbb1975
Starting Member

23 Posts

Posted - 2006-10-04 : 06:56:12
;-))
Yeah, this works, but I need to start this operation programmatically on MSSQL 2000 developing on MSSQL 2005 ....
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-10-04 : 07:05:00
Migrating a database from SQL2005 to SQL2000 is not very easy (compared to the other direction at least!)

I reckon DTS is your only obvious route.

And you'll need to be maintaining scripts of all the objects so you can can run the scripts against SQL 2000.

Might be easier to just persuade your customers to upgrade to SQL2005 !

We've taken the route of being a late adopter for SQL 2005. All our customers are still on SQL 2000.

Kristen
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-04 : 07:14:21
I don't think this forum is made for requesting scripts.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

wbb1975
Starting Member

23 Posts

Posted - 2006-10-04 : 08:33:04
Yes sorry, I should have posted it to T-SQL-forum ... ;((
Go to Top of Page
   

- Advertisement -