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.
Related
I need to generate a script with the data from one db in sql server to postgres. It seems the "Generate Script" in SQL Management doesn't do ANSI format like INSERT INTO that I need.
How can I do it?
I suggest.
Fire up an instance of Postgres on an accessible device.
Set up a linked server from Microsoft SQL Server to access the postgresql server using the postgres 64 bit odbc driver.
Start writing TSQL to transfer the data.
https://www.google.com.au/search?q=postgresql+odbc+sql+server+2012
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
I use sql server 2005 as my database for my web application.... I generated scripts of the database by,
Database->Right Click->Tasks->Generate Scripts
I can script all my Tables,Stored Procedures,User Defined functions,Views,Users....
All i missed was database diagrams because there was no option for scripting it.. How to include them into the new database...
Take a look at this.
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.