Solved

Data Export from SQL6.5 to 7.0

Posted on 2000-03-14
7
509 Views
Last Modified: 2008-03-10
Hi all,

I've recently had to move data from a SQL6.5 to SQL7.0 database. I did this with the Import/Export wizard and connect through SQL Server OLEDB Driver to SQL7.0 and the SQL Server ODBC Driver to SQL 6.5. All seems to work well, except that the consraints on the individual tables (for example the identity field) was not preserved. Is there a way to ensure that the identity and other constaints, as well as the indices are successfully recreated during the import? AM I missing something in the import wizard ?
0
Comment
Question by:stefanx
7 Comments
 
LVL 3

Expert Comment

by:ghimireniraj
ID: 2619603
great
0
 
LVL 8

Author Comment

by:stefanx
ID: 2619859
What kind of comment is that ?
0
 

Accepted Solution

by:
StangLady earned 100 total points
ID: 2620023
Did you try scripting your tables and just doing an import on the data making sure to set the  ENABLE IDENTITY INSERT option?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 2

Expert Comment

by:kubeerja
ID: 2620525
Import/Export wizard will import Data only and create tables with basic structure only without creating constrains or indeces or keys.
Make a full script of your Database including constrains , inceces,foriegn keys and users.
Run it on the new server then import the data.
0
 
LVL 8

Author Comment

by:stefanx
ID: 2621291
OK thanks to everyone so far. I'll try this in the morning
0
 
LVL 2

Expert Comment

by:rdrrichards
ID: 2627687
The Import/Export wizard has the option of moving database objects too. Have you tried that?
0
 
LVL 8

Author Comment

by:stefanx
ID: 2631090
OK Stanglady and kubeerja - both of you are right. It just turns out that if you are importing using ODBC Driver from SQL 6.5 and OLEDB Driver to SQL7.0 and you are running enterprise manager from Windows 98, that the import/export wizard GPF's (I've done this from many machines now, and it always crashes). When doing it from NT, it is fine.

I think the points are going to Stanglady, purely because he/she answered first.

Thanks everyone else.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

896 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

13 Experts available now in Live!

Get 1:1 Help Now