473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

SQL7 to SQL2000 Migration

Hi, guys - looking for a bit of help/advice on moving a database from
SQL 7 to SQL 2000.

We've a third party application which currently uses a SQL7 database.
This database has a number of views which are owned by user
INFORMATION_SCHEMA and are set as system tables. This user doesn't
actually have a login on the SQL server.

We've tried the following to recreate the database on SQL2000, but
whatever we try, the views owned by INFORMATION_SCHEMA won't copy over
from SQL7:

(1) We tried the "Copy Database" wizard in SQL2000, but were getting
errors when trying to actually copy the database (other steps worked
fine).
(2) We tried a restore to SQL2000 from our Legato Networker backup of
the SQL7 database, but the views didn't come across.
(3) We tried a backup from SQL7 and restore to SQL2000, but got the
message that the backup file contained a database other than the one
we wanted (it didn't - we checked the backup file several times by
restoring it to another SQL7 server).
(4) We tried to import/export data from SQL7 to SQL2000, but the views
owned by INFORMATION_SCHEMA weren't showing to add to the list of
objects to take across.
(5) We created the INFORMATION_SCHEMA login on SQL2000, and tried all
restores again, but still the views wouldn't go across.
(6) We generated the SQL for all views in SQL7 and ran these on
SQL2000, setting the owner to INFORMATION_SCHEMA, but wasn't sure
where to set the type to "system" (as opposed to "user).

We're having problems running the third party application with a
connection to SQL2000, and want to rule out the lack of views, or view
ownership, as the problem. Our third party vendor isn't coming up
with any solution in a hurry. Can anyone think of any reason why the
views are coming across when the database is restored to SQL2000?

Thanks for your help.
Jul 20 '05 #1
1 3321
There is no need to transfer these views to sql2000 (if not a
possibility) , because they are already there. Just like system tables
there are also system views. These views are based on the sql-92
standard. When you connect to a sql2000 database and open the query
analyzer type this statement and run it on the northwind database (or
any other if you want):

select * from information_schema.columns

You will get to see a list of all the columns for all the tables in
that specific database. Notice that there you cannot see these view
but CAN execute a select on them.

to be short:
There is no need (and no way) to transfer these information views.
Here is the text form the BOL (sql2000)

Information Schema Views
Microsoft® SQL Server™ 2000 provides two methods for obtaining meta
data: system stored procedures or information schema views.

Note To obtain meta data, use system stored procedures, system
functions, or these system-supplied views only. Querying the system
tables directly may not provide accurate information if system tables
are changed in future releases.
These views provide an internal, system table-independent view of the
SQL Server meta data. Information schema views allow applications to
work properly even though significant changes have been made to the
system tables. The information schema views included in SQL Server
conform to the SQL-92 Standard definition for the INFORMATION_SCHEMA.

SQL Server supports a three-part naming convention when referring to
the current server. The SQL-92 standard also supports a three-part
naming convention. However, the names used in both naming conventions
are different. These views are defined in a special schema named
INFORMATION_SCHEMA, which is contained in each database. Each
INFORMATION_SCHEMA view contains meta data for all data objects stored
in that particular database. This table describes the relationships
between the SQL Server names and the SQL-92-standard names.

SQL Server name Maps to this equivalent SQL-92 name
Database catalog
Owner schema
Object object
user-defined data type domain
This naming convention mapping applies to these SQL Server
SQL-92-compatible views. These views are defined in a special schema
named INFORMATION_SCHEMA, which is contained in each database. Each
INFORMATION_SCHEMA view contains meta data for all data objects stored
in that particular database
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Timothy Williams | last post by:
I am trying to move a database created in ms sql7 Desktop on a win nt4 workstation, to a ms sql7 server on a win nt4 server. All service packs are the same. I have tried backing up the database...
1
by: Peter L.S. Trevor | last post by:
I just got Visual Studio 6 Enterprise which includes SQL Server 7. However, when I try to install SQL7 (Standard Edition ?) on Windows XP Home it only installs the client components and not...
1
by: John Gill | last post by:
We are trying to import data from a sql 7 machine into sql 2000 using import wizard in DTS. One of the tables has in excess of 80 million rows. The first time we did this it worked fine no...
3
by: Nick | last post by:
Im trying to access a sql200 database from a sql7 hosted stored procedure and this is not working. I know that SQL7 is not compatible with the MDAC for SQL 2000. Does anyone know if this is what is...
3
by: Jeff | last post by:
I have a SQL7 database that was installed as case-insensitive. /* Sort Order = 52, Case-insensitive dictionary sort order. */ This database contains a table that has a varchar column which...
2
by: PointMan | last post by:
i make a project in vs2005 that use ASPNETDB.MDF and use <asp:LoginView ID="LoginView1" runat="server" > server control for vs2005 in this case , i'd like to use hosting service but this...
0
by: FAS | last post by:
HOW can I create an SQL7 database by creating a file size and location first. I remember creating an SQL7 database by first creating a file size and location a while back. I am trying to do the same...
0
by: FAS | last post by:
My C: drive crashed, I have my SQL7 data and file in F: Drive. Now I have replaced my C: drive, but not able to reconnect SQL7 to the files in F drive. Please can some one help? :mad:
0
by: @sh | last post by:
Guys, we want to use the Replication features (or something similar) to backup our primary SQL database, the primary DB is using SQL 7 and our secondary server is SQL 2000 - is this possible? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.