RE: sql2k Collation problems.
- From: v-sguo@xxxxxxxxxxxxxxxxxxxx (Sophie Guo [MSFT])
- Date: Thu, 08 Dec 2005 06:46:18 GMT
Hello,
Based on my knowledge, parameters for function is assigned the default
collation of the database:
Specifying Collations
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_
ar_da_3zw3.asp
*Parameters for stored procedures or functions, user-defined data types,
and variables are assigned the default collation of the database*
However, you can refer to the following information:
1.
Changing Collations
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_
ar_da_819v.asp
*****************
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.
*****************
2. Change the collation of the master database:
How to transfer a database from one collation to another collation in SQL
Server
http://support.microsoft.com/default.aspx?scid=kb;en-us;325335.
You can refer to the "Change the collation of the master database" and
"Change the collation of the master database in SQL Server 2000" section.
3.
COLLATE
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_
ar_da_819v.asp
*Creating or altering a database.
You can use the COLLATE clause of the CREATE DATABASE or ALTER DATABASE
statement to specify the default collation of the database. You can also
specify a collation when you create a database using SQL Server Enterprise
Manager. If you do not specify a collation, the database is assigned the
default collation of the SQL Server instance.*
I hope the information is helpful.
Sophie Guo
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: sql2k Collation problems.
- From: Adrian Parker
- Re: sql2k Collation problems.
- References:
- sql2k Collation problems.
- From: Adrian Parker
- sql2k Collation problems.
- Prev by Date: Re: SQL instances
- Next by Date: Re: sql server 2000 backup and restore
- Previous by thread: sql2k Collation problems.
- Next by thread: Re: sql2k Collation problems.
- Index(es):
Relevant Pages
|