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
 SQL Server Administration (2005)
 Change 2005 Collation & All Objects

Author  Topic 

darius_sutherland
Starting Member

17 Posts

Posted - 2009-05-12 : 10:53:09
Is there a way / script to change the SQL Collation and also all tables and objects within the database.

I have a query / join that will not run. When I change the collation properties of the dataabase, the problem is still there.

Thanks
D

State Of Mind Photography - It's This, It's That, It's The Other

www.state-of-mind.co.uk | www.photographersinbrighton.org.uk | www.sussexweddingphotographers.org.uk

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2009-05-12 : 11:45:04
Why not just put COLLATE on your join instead? It is much easier.

On Tab1.field = Tab2.field COLLATE Latin1_General_AS

etc..
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2010-11-12 : 17:15:42
you need to use sys.columns and set the collate option to the right collation...
alter table...alter column

--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -