Is it possible to move database from sql server 2005 to server 2000 ..??

  • Actually I have developed the project using sql server 2005 as a DB. But now the client wants to go with sql server 2000 only ........

    and now i want to move my DB to ita lower version ....... so how can i do this

    without causing any effect to the data and to the constraints in the DB

    plzzz help me out to find the way........its urgent you can see it....

    Thanks

    Vaibhav

  • Script the metadata from 2005, apply the scripts on the 2000 server. Then BCP out the data from each of the tables, then BCP them in to SQL 2000.

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

  • To add on to what Barry said, there is no way to take a backup of a 2005 database and restore it on 2000, nor is it possible to detach a SQL 2005 database and attach it to SQL 2000. The file structure is different, the system tables are different.

    And before anyone suggests compatibility level, that just affects the T-SQL parser and the query processor, controlling how commands are interpreted. It does not affect the structure of the database file in an y way.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I hope you have'nt used any of the new features in SQL 2005 which will require code changes. If you have used you will need to make code changes.

    "Keep Trying"

  • I had the joy doing this little exercise last year. There is nothing to complex with this tasks. It is just @#$# work.

  • I have done this few years ago.It's not hard as everyone thinks.I used SQL compare from redgate.

    "First, create a new database on the SQL Server 2000 instance using Enterprise Manager, SSMS or writing a CREATE DATABASE [databasename] query.

    Launch SQL Compare and choose your SQL 2005 database as the source and specify the empty SQL 2000 database as the target.

    SQL Compare will produce a script to CREATE all objects in dependency order, and use syntax that is compatible with SQL Server 2000. Where possible, new features such as CLR assemblies are filtered out because they are incompatible with SQL Server 2000. Sometimes this is not possible, for instance if a stored procedure relies on a CLR function. Since the function cannot be created, the stored procedure cannot be successfully scripted. Analyzing your databases for these conditions first is recommended." from Redgate website.

    Thanks,

    Rohan

  • Hello

    What I have used is the Microsoft SQL Server Database Publishing Wizard , you can download it from the MSwebsite, it will generate a file with the T-SQL scripts for the objects in your database.

    You can also include the data!

    Then you can create the database in SQL 2000 and run the file in Query Analyzer and that's all.

    However you need to be careful because if you're using some SQL 2005 features in your code (like Try-catch error in Stored Procedures) that won't work for SQL 2000

    Hope this will be useful for you!

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply