Solved

SQL Dbase Migration

Posted on 2009-07-06
7
409 Views
Last Modified: 2012-05-07
Hello Experts,
I just realized that while I am able to develop in SQL 2008 using capatibility mode for SQL 2005 any .bak file I create is only compatible with SQL 2008.   So my next thought was to use SQL Server Management Studio to create a script that was for SQL 2005 and just save both the data and the dependant objects.  It works fine until I actually try and run the script, the file size for the script is ~445MB and it has several inserts to address the data.  When I try and run it I get an error, "The operation could not be completed.  Not enought storage is available to complete the operation".

Suffice it to say I have plenty of MEM and storage available and I also allowed for unrestricted growth.  After some research it would seem that SQL Server Management Studio doesn't handle large script files very well.  Sure enough when I just saved everything except the data I was able to create the dbase.

So here's my question, how the heck do I move a SQL 2008 capatible SQL 2005 file to an actual SQL 2005 server including the data?
SQL-Error.bmp
0
Comment
Question by:ShadowIT
  • 3
  • 3
7 Comments
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 24792216
did u try Copy Database option or import export option on SSMS(managment Studio) ?
0
 

Author Comment

by:ShadowIT
ID: 24794797
No, I haven't tried that...actually I thought I run into the same limitations I had with the .bak file.  Namely that any file, regardless of the type, would be native SQL 2008 and would therefore not work with SQL 2005...this is the case with the .mdf and .ldf files.  
0
 
LVL 7

Expert Comment

by:wilje
ID: 24796667
Copy database has an option to copy objects also.  This option scripts out the objects and copies them using an SSIS package.  There are two options available where the second option is the attach/detach method which will not work for you.
The import/export option is basically the same - just using SSIS to transfer the objects.
 
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 7

Expert Comment

by:wilje
ID: 24796684
Another option would be to use a tool like Redgates SQL Compare and SQL Data Compare.  These tools are well worth the money spent.
There is also ApexSQL - and various tools at www.codeplex.com that can also do this.
0
 

Author Comment

by:ShadowIT
ID: 24804775
Can you be more specific, which specific tools should I look at?
0
 
LVL 7

Accepted Solution

by:
wilje earned 500 total points
ID: 24804817
Redgates SQL Compare & SQL Data Compare (http://www.red-gate.com)
ApexSQL's Comparison Suite (http://www.apexsql.com)
And also search http://www.codeplex.com for DB compare tools.
Is that not specific enough?
0
 

Author Closing Comment

by:ShadowIT
ID: 31600484
What should be clarified is the perspecitve of this resolution.  I was trying to get a large script to run that contained inserts for the dbase data.  Instead I created a much smaller script to recreate an empty dbase (tables, relationship, stored procedures, views & object dependancies) in SQL 2005.  Then I used RedGate SQL Data Compare to migrate this data from the original SQL 2008 dbase to the newly created SQL 2005 dbase.  Once in SQL 2005 I was able to create a viable SQL 2005 .bak.  So essentially wilje was suggesting I look at this as a data migration effort...just took me a little while to figure out that perspective since my focus was on getting the large script to work in terms of some sort of work around.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tempdb log contention 16 50
SQL Server 2012 r2 - Varible Table 3 32
why sql server only update some statistics in the database ? 3 35
Sql Server group by 10 45
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question