Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 30th, 2004, 11:12 PM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Import SQL 2K query into SQLServer under version

Hi all,
I'm using generating SQL script from SQL 2K. After that when I run those SQL scripts on SQL Server 7.0, has problem is SQL Server 7.0 not accept COLLATE, how can I generate SQL script from SQL 2K which not have COLLATE of SQL 2K.
Thank for your help.

 
Old September 2nd, 2004, 07:19 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

I believe you have to change the collation of the SqL 2000 server to match the collation of the existing SQL 7.0 collation then script your database

Look it up on Books Online

Selecting a SQL Collation
  New Information - SQL Server 2000 SP3.

When selecting a SQL collation in the Collations Settings screen, use the following table to make the installation of Microsoft® SQL Server™ 2000 compatible with an installation of an earlier version of SQL Server.



Note Each SQL Collation name has an equivalent string in T-SQL code. For a list of sort order identifiers and the T-SQL version, see SQL Collation Name.





 
Old September 3rd, 2004, 12:00 AM
Registered User
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much,
My problem was fixed. But I have another problem when I use SQLDMO Scripting table structure I got script again has contain "COLLATE SQL_Latin1_General_CP1_CI_AI" ( [LastName] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AI NOT NULL ) when I need script is "[LastName] [nvarchar] (20) NOT NULL" Could you tell me about parameter of ObjectScripting Contanst or how to fix this problem.
Thank for your help.

 
Old September 3rd, 2004, 08:41 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

I am not 100% clear on what you trying to say but if you do not want the collation when you are scripting and object.

Open Query Analyzer
select tools
select options
select script tab
select option " do not script the collation clause if source is an instance of SQL server version 7.0 or later"

I hope this answers your question?





Similar Threads
Thread Thread Starter Forum Replies Last Post
update mulitple rows in SQL 2K danastasio Classic ASP Databases 2 January 16th, 2007 12:14 PM
Runtime Access 2K and Sql 2K laure Access 0 April 3rd, 2006 08:32 AM
AutoIncrement in Insert on SQL Server 2K CarlosV SQL Server 2000 5 January 19th, 2006 06:01 PM
SQL 2K and VB6 FrontEnd vinceclo SQL Server 2000 0 February 4th, 2004 10:29 PM
Connectivity Problem To SQL Server 2k ctanchan Pro VB Databases 4 October 7th, 2003 11:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.