Transfer database from SQL Server 2008 version 10.50.2500 to 10.0 2531 - sql

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

Related

Importing relational diagram from Oracle data modeler to sql server

I have made a relational diagram in Oracle Data Modeler. Now I want to use it in microsoft sql server to write queries on it. How should I do?! I know I have to import it but I couldn't find how...
Set the relational model properties to 'SQL Server' for site type - SQL 2008 is the highest we support at this time.
Now create a physical model, of type SQL Server.
Now export your model to SQL - use this button
Set your options, and go.
We won't create a database for you. You'll need your own SQL Server already up and running, but then you can have your objects created.

How to merge tables from 2 databases in SQL Server 2008

I'm using SQL Server 2008 - just a standard edition. Sorry if this is a rather basic question, but I know very little about SQL
I have 2 databases I've previously created using Visual Studio that would now benefit from being merged. By merged I mean copying the tables from the 2nd database to the first and deleting the 2nd database.
Is there a simple way of doing this through the SQL Management Studio?
You can use OPENROWSET to read data from one database and merge it into another.
For example:
USE DBToMergeInto;
INSERT INTO TableToMergeInto
SELECT * FROM OPENROWSET
('SQLOLEDB',
'Trusted_Connection=yes;Server=192.168.1.1\ServerToMergeFrom',
'DbToMergeFrom.dbo.TableToMergeFrom')

Unable to Import a database from Microsoft SQL Server Management Studio to phpmyadmin

Hey folks, the person I am buildling a website for decided to design their own database. They used Microsoft SQL Server Management Studio to build it and such. Now that they are done with the database they exported it to a text file (Tasks -> Generate Scripts). Now when I try to import the file into phpmyadmin I get the following error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[master] GO /****** Object: Database [Butterbakers] Script Date: 02/15/201' at line 1
The database code is here: http://zamn.pastebin.com/Y3u7MpZ9
phpmyadmin is for MySQL.
Microsoft SQL Server is a different DBMS.
Large parts of the SQL Syntax is DBMS/vendor specific.
The MySQL Workbench has a feature to "Create EER Model from existing Database".
This may be a try but you need a jdbc connection to the MS SQL Server and MySQL...
Converting DDL to a different DBMS is all but easy. And if you're done this doesn't guarantee that an probably already existing application is still working with the other DBMS.
Not switching DBMS and using the free MS SQL Express could be an option.
First decide for a DBMS and restart form zero is surely the cleanest and less painful solution.
With SQL Compare (http://www.red-gate.com/products/sql-development/sql-compare/) and SQL Data Compare (http://www.red-gate.com/products/sql-development/sql-data-compare/) , you can synchronize different DB.

How to compare DTSs in SQL Server 2005

Once your databases are converted from SQL Server 2000 to SQL Server 2005, is there any way to compare DTSs on two servers to see if they are still essentially the same? I need to see if my dev and prod are the same, and comparing them manually is really time consuming.
If they were still in 2000, I could use the Red-Gate tool DTS Compare, but that doesn't work in 2005. I can save each as a Visual Basic file, and then compare those (and that kind of works), but the steps may be output in a different order. Is there something out there that is better?
I would say, don't use DTS jobs in SQL Server 2005.
There are a complete new and reworked method to do those things: SSIS.
Here you find an introduction:
http://www.accelebrate.com/sql_training/ssis_tutorial.htm
Yes, maybe you can't compare it perfectly, but DTS Jobs are run out of support since SQL 2005 (remember, we are in 2009 :) )

How can I transform database from sql server 2005 to 2000

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.