Wrox Programmer Forums
|
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 January 18th, 2005, 09:01 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bi-Lingual database Design

Hello All,

Hope you all are doing great.

I need to design a SQL Server database in which one of the tables will contain data both in Chinese/Mandarin and in English. (in different fields of course). These fields will be displayed and updated via ASP web pages.

It would be a great help if someone could point me to a web link or if you could temm me of the various issues I need to consider for this project.

Thanking you all in advance.

Cheers
 
Old January 18th, 2005, 06:27 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

Can do this; I just read on the MCDBA practice exam.

You can find all hte information in "BOOKS ONLINE"
Changing Collations
You can change the collation of a column by using the ALTER TABLE statement:

CREATE TABLE MyTable
  (PrimaryKey int PRIMARY KEY,
   CharCol varchar(10) COLLATE French_CI_AS NOT NULL
  )
GO
ALTER TABLE MyTable ALTER COLUMN CharCol
            varchar(10)COLLATE Latin1_General_CI_AS NOT NULL
GO

You cannot alter the collation of a column that is currently referenced by:

A computed column.


An index.


Distribution statistics, either generated automatically or by the CREATE STATISTICS statement.


A CHECK constraint.


A FOREIGN KEY constraint.
You can also use the COLLATE clause on an ALTER DATABASE to change the default collation of the database:

ALTER DATABASE MyDatabase COLLATE French_CI_AS

Altering the default collation of a database does not change the collations of the columns in any existing user-defined tables. These can be changed with ALTER TABLE. The COLLATE CLAUSE on an ALTER DATABASE statement changes:

The default collation for the database. This new default collation is applied to all columns, user-defined data types, variables, and parameters subsequently created in the database. It is also used when resolving the object identifiers specified in SQL statements against the objects defined in the database.


Any char, varchar, text, nchar, nvarchar, or ntext columns in system tables to the new collation.


All existing char, varchar, text, nchar, nvarchar, or ntext parameters and scalar return values for stored procedures and user-defined functions to the new collation.


The char, varchar, text, nchar, nvarchar, or ntext system data types, and all user-defined data types based on these system data types, to the new default collation.
After a collation has been assigned to any object other than a column or database, you cannot change the collation except by dropping and re-creating the object. This can be a complex operation. To change the default collation for an instance of Microsoft® SQL Server™ 2000 you must:

Make sure you have all of the information or scripts needed to re-create your user databases and all of the objects in them.


Export all of your data using a tool such as bulk copy.


Drop all of the user databases.


Rebuild the master database specifying the new collation.


Create all of the databases and all of the objects in them.


Import all of your data.


Note Instead of changing the default collation of an instance of SQL Server 2000, you can specify a default collation for each new database you create.

©1988-2002 Microsoft Corporation. All Rights Reserved.


Jaime E. Maccou





Similar Threads
Thread Thread Starter Forum Replies Last Post
multi lingual website with php - how can I? js_pandey PHP How-To 3 March 30th, 2011 07:06 AM
Develop a Report Model with BI ASysSolvers Reporting Services 0 September 1st, 2007 01:48 AM
Database design tsimsha Classic ASP Databases 0 February 3rd, 2006 03:28 AM
Re: Database design malhyp BOOK: Expert One-on-One Access Application Development 0 August 24th, 2005 06:34 AM
Multi-lingual support aravwind General .NET 4 July 21st, 2004 08:18 AM





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