How can I get the 'entire' database, structure and data, from SQL server 2008 to SQL server 2005?

1) I can't get the 'copy database' function to work from SQL Server 2008 to SQL Server 2005. I connect ok. Everything goes to the last step and then it fails.

2) I cant get a SQL server 2008 backup to restore on SQL SEerver 2005 either.

The only way I know that works is to script the creation of all tables then export and import. This does work.

How can I get the 'entire' database, structure and data, from 2008 to 2005?


SQL newbie.

6/20/2008 5:14:49 PM 29906 articles. 0 followers. Follow

2 Replies

Similar Articles

[PageSpeed] 38

Visual Studio 2008 supports a type of project called a database project. You might try importing the schema of the database into the database project. You can then "deploy" the database project to a different database.

I use these a lot. They're extremely useful because they allow you to maintain a database schema in source file form. They can also easily be kept in source/version control systems.

Give it a shot. The nice thing is you get individual sql files organized in the project for everything. You can do schema comparisons and much more.

I hope that helps,

C. Brendan Enrick
Brendan's Blog

Make sure you click "Mark as Answer" for any post which has helped you. This will give recognition to those helping others as well as earn you a point. It also helps people know which posts still need work.
6/20/2008 7:35:34 PM

You can also script the whole database, data and tables and all of it. The run that script on the 2005 server. Remember to set the scripting options for SQL server 2005.

6/21/2008 1:46:43 AM

Similar Artilces:

how can associated 'sa' with a trusted SQL Server connection in sql server 2005?
I want to use sa user login sql server 2005 to visit my database "dotnet20" but when I set the user property in User Mapping, It Report when I set it, An Error Occur like followCannot use the special principal 'sa'. (Microsoft SQL Server, Error: 15405)and also when I want to Login sql server use 'sa' user, It Report Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)how can  associated 'sa' with a trusted SQL Server connection? I'm having this exact same problem. When I login using Windows authent. I can co...

[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database requested in login 'WinFM SQL PFS'. Login fails.
HiASP pages were properly connecting to SQL DB until I restored from a backup DB.  As soon as I finished restoring from the backup DB, I am getting the following error message.   I did not make any changes on ASP side.  IIS Server and SQL 2K Server is running on a WIN2K Server Box.Please help.Thank you.HTTP 500.100 - Internal Server Error - ASP errorInternet Information ServicesTechnical Information (for support personnel)Error Type:Microsoft OLE DB Provider for ODBC Drivers (0x80004005)[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database requested in login...

Can microsoft SQL Server 2005 database upgrade to microsoft SQL Server 2008 database?
I have a microsoft SQL Server 2005 database, I don't know how to upgrade the 2005 database to 2008 database, I try to use SQL Server Management Studio Express 2008 to open the 2005 database, it's OK, does it mean that the 2005 database have been upgraded to 2008 database? BTW, is SQL Server 2005 database compatible with SQL Server 2008 database completely?SuperCool Multiple ZIP - A utility to unzip multiple files and work with multiple zip filesSuperCool Random Number Generator Yes. It is compatible. Anyhow go through this url for more information

Can't seem to install SQL server 2005? Install completes, but where is SQL Server 2005
I went to one of the Microsoft "Ready To Launch" events over a year ago. Microsoft was gracious and gave everyone who attended a free copy of Visual Studio 2005 and SQL Server 2005. I have installed the Visual Studio and use it all of the time. I also installed the SQL server 2005 but I can not find the application on my computer. After the install the only items that appear to have been installed are the following: SQL Server Configuration tools(SQL Server Configuration manager,SQL Server  Error and usage reporting, SQL Server surface area confiuration, Reporting Services configu...

[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
Hello All, I'm Getting the following error when calling a dll from my application. [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. The dll was written in vb6 and accesses a sql db using the following connection string. Public Const GLOBAL_DNS As String = "DSN=TransSrvFinal;UID=sa;PWD=admin;" This DLL works fine when called from other Windows Apps. However I'm now trying to call this dll from with in an application. I'm using as the codebehind. I'm a...

sql server 2005 do'nt attach sql server database file
I have sql server 2005 standard version. I want connect mu database file with microsoft sql server  database file.I receive ... provider: SQL Network Interface; error: 26 - error locating server/instance specified ... error.How to use local .mdf file with sql server 2005 (not express)  SQL Server (not express) doesn't support attaching on the fly of mdf files, so you need to do it manually. That is, open SQL Management Studio, right click the server, select attach, and that way you can permanently attach the database to the server. You'll have to use a normal connection s...

2008 IIS7 connection to SQL Server 2000 on Web Server 2000: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
I am setting up a windows 2008 IIS7 web server, and trying to connect to a windows 2000 sql server 2000 database. I have an IIS6 Windows 2000 web server activately connected just fine. I have anonymous and windows authentication enabled. And in my web.config I have identity impersonate="true" My sql server 2000 typically uses the IISUSER anonymous user set up in IIS6 on my original windows 2000 web server. But this new IIS7 is giving me grief. I can't seem to setup the IUSR or IISUSER or anything in it. I can't even use sql server credentials in my connection string altho...

This version of Microsoft Sql Server Management Studio can only be used to connect to Sql Server 2000 and Sql Server 2005 servers
When I connect SQL Server 2005 to a remote database i get the error: "This version of Microsoft Sql Server Management Studio can only be used to connect to Sql Server 2000 and Sql Server 2005 servers". Can I confirm it is because: the remote db is of SQL Server 2008? There is a soln mentioned in Did anybody try this (installing 2008 express: I am just checking again, whether it will disturb my existing SQL Server installation, in any means...? Though it is mentioned that it will g...

Can't Connect .Net application from Windows Server 2003 to Database Server (SQL Server 2000)
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my windows xp (sp2) box it works fine. When I try to connect via SQL Management Studio to the database server from the application server I get the same error. Here is the error: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider...

Migrating sql server 2005 express database to sql server 2005 database
Hi, I have an application developed using VWD and sqlserver express database. The express database is turning out to be small in size and we need to migrate to larger sqlserver 2005 database. What are the steps for this migration, please list in detail. Regards, Sandyhttp://www.thequinn.infohttp://www.sksdataservices.com Hi Sandy, To move a database from SQL Express to SQL 2005, you can use the following steps. 1. If your database file is attached to the server instance, you will need to detach it first using SQL management studio. If it is under App_Data folde...

wegconfig connectionstring ADODB System.Data.Odbc error is [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'TSQL'
    <add name="MYADODBCUSTOMERCONNECTIONSTRING" connectionString="Driver={SQL Server};;Database=myDbname;Uid=xxxxx;Pwd=xxxxx" providerName="System.Data.Odbc" />   [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'TSQL'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: [Micros...

how can I copy the entire database from one sql server to another sql server?
How can I copy the entire database (all the objects from one database to another database)? thanks in advance. Use DTS (right click on a database in Enterprise Manager, select All Tasks, and then Import or Export, as appropriate). You can also back up the database and then restore on the other server.Starting with ASP.NET 2.0? Look at:Programming Microsoft Web Forms My Blog hi Douglas, Thanks for your post. I was looking at the Database Copy Wizard. But it says my local system does not have the permission to copy files over the network. I looked over some tuturials and changed ...

SQL Server instance Error
Hi Guys, I created a default website in VS2008 & dragged in a webpartmanager into the div section (i was going to have a play with creating web parts). I tried to preview the default page to seeif it runs but i get the following error: Server Error in '/WebSite1' Application. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - E...

Can Sql Server Express 2005 Run a Sql Server 2000 database?
Should be a quick question:I've got a client with a Sql Server 2000 database.  He wants to hook it up to a server that is only running Sql Server Express 2005.  Can this work? Thanks!-Craig - Taking Fantasy Football to School Tell him to Backup the database and send you the .bak you can restore it as 2005 database.  I have posted a FAQ about moving SQL Server databases and there is a free chapter about Backup and Restore in the link below.  Hope this helps. regards,Gift Peddie Thanks!  I will rec...

Web resources about - How can I get the 'entire' database, structure and data, from SQL server 2008 to SQL server 2005? -

Resources last updated: 12/30/2015 1:33:59 AM