Re: sql2k Collation problems.
- From: v-sguo@xxxxxxxxxxxxxxxxxxxx (Sophie Guo [MSFT])
- Date: Tue, 13 Dec 2005 10:19:17 GMT
Hello,
You can explicitly specify the collation of the temporary table as
followings:
create table #temptb (cola varchar(10) collate Latin1_General_CI_AS )
You can also use the database_default option in the COLLATE clause to
specify that a column in a temporary table use the collation default of the
current user database for the connection instead of tempdb.
Specifying Collations
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_
ar_da_3zw3.asp
For example, run the following code:
use mycoll
go
create table #temptb (cola varchar(10) collate database_default )
use tempdb
go
sp_help #temptb
go
Collation=Latin1_General_CI_AS
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.
.
- References:
- sql2k Collation problems.
- From: Adrian Parker
- RE: sql2k Collation problems.
- From: Sophie Guo [MSFT]
- Re: sql2k Collation problems.
- From: Adrian Parker
- Re: sql2k Collation problems.
- From: Sophie Guo [MSFT]
- Re: sql2k Collation problems.
- From: Adrian Parker
- Re: sql2k Collation problems.
- From: Sophie Guo [MSFT]
- Re: sql2k Collation problems.
- From: Adrian Parker
- Re: sql2k Collation problems.
- From: Sophie Guo [MSFT]
- Re: sql2k Collation problems.
- From: Adrian Parker
- sql2k Collation problems.
- Prev by Date: Re: How to uninstall MS SQL Server
- Next by Date: Impossible to uninstall SQL Server
- Previous by thread: Re: sql2k Collation problems.
- Next by thread: Deploy MSSQL 2005 Express
- Index(es):
Relevant Pages
|