Solved

SQL Dbase Migration

Posted on 2009-07-06
7
406 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
Comment Utility
did u try Copy Database option or import export option on SSMS(managment Studio) ?
0
 

Author Comment

by:ShadowIT
Comment Utility
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
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 7

Expert Comment

by:wilje
Comment Utility
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
Comment Utility
Can you be more specific, which specific tools should I look at?
0
 
LVL 7

Accepted Solution

by:
wilje earned 500 total points
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now