Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Collation settings

Author  Topic 

Bex
Aged Yak Warrior

580 Posts

Posted - 2009-01-22 : 09:32:27
Is it possible to insert from one database to another and determine the collation at run time?

For example
DatabaseA has collation General_latin_??

DatabaseB has collation General_somethingelse

I am doing an INSERT INTO DatabaseB(...) SELECT .... FROM databaseA

But I want to keep the collation of databaseB????



Hearty head pats

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-22 : 09:33:20
use COLLATE clause
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-22 : 09:35:11
http://msdn.microsoft.com/en-us/library/ms184391.aspx
Go to Top of Page

Bex
Aged Yak Warrior

580 Posts

Posted - 2009-01-22 : 09:38:01
thanks :)

Hearty head pats
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-22 : 10:48:22
welcome
Go to Top of Page
   

- Advertisement -