how can I transform database from sql server 2005 to 2000
Use SSIS to export the database directly to SQL Server 2000.
First make sure that you aren't using any native 2005 features like included columns on indexes, XML features, etc. Then you can script the schema out using SSMS, and export the data using BCP or SSIS to SQL 2000. Some vendor tools exist like RedGate SQL Compare and Data Compare that make doing this a whole lot easier if you have primary keys defined on your tables.
Related
I cannot believe this is so difficult. Backup / Restore fails. Import and Export both fail with a variety of silly errors.
Is there a way to do this that works?
Try scripting out the schema and data, with the SQL Server Management Studio
Article explaining how to use SQL Server Management Studio
If that doesn't work, you'll have to use a more advanced third party tool. Like, for instance, Red Gate's Sql Toolbelt, where:
SQL Compare allows you to compare and merge schema between 2 databases
Data Compare allows you to compare and merge data between 2 databases
I'm not able to find in SQL Server 2005 the utility that phpmyadmin has for exporting tables.
I need a way to dump all info a table contains in a query with all the instert into in it.
How can I do that with SQL Server 2005?
Use the Database publishing wizard tool you can find it under the SQL Server install directory
I need to create reports on SSRS 2008 from data available on SQL Server 2000, now; the database on SQL2000 is preferably not touched so I am avoiding adding stored procedures, views, indexes etc..
What would be the right solution?
What I would be needing is a place where I can put stored procedures, views etc so I can do reports.
Thanks.
create an ssis package / dataflowtask, copy your data from one source (sql 2000 - sql 2008r2)
create a reporting database, move your data to this database and make your reports on this database
How to generate script for a table with data in sql server 2005?
Check out the FREE SQL Script Generator:
It can generate scripts for both the object structures, as well as the data.
I want to copy a SQL Server 2005 database to SQL Server 2008 but I don't want to pickup the collation from the 2005 db. I want to use the default collation in 2008.
If you backup/restore or detach/attach a database from one system to the other, you'll always have that database's collation come with it - there's no option to disable that.
So you can basically do one of two things:
use one of those methods to move the database from SQL Server 2005 to 2008, and then change the collation after you've restored/attached the database
or:
generate a ton of INSERT scripts from the old database and re-create its structure on 2008 with that server's default collation, and run those insert scripts on your new database
Try DBSourceTools.
http://dbsourcetools.codeplex.com
It will script all database objects to disk, and then through a "Target Database", re-create the database, with all objects and data.
It has been tested on SQL 2000, 2005 and 2008.
It uses BulkCopy to insert data, so can import thousands of rows of data.
I ended up using the OSQL command line utility to run the script and it worked fine.