Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
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 November 4th, 2004, 08:42 AM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default describe SQL Server 8 column collation

I can see the current collation for my database but I suspect that certain columns may have a different collation. How can I check this please?
 
Old November 5th, 2004, 06:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Look at the syscolumns table in your database, there's a collation column so you can easily test this to see if any columns aren't the default collation. (Use OBJECT_NAME(id) to see which table the fields belong to.) Something like this should get you started
SELECT OBJECT_NAME(id) AS ObjName, [name], [collation]
FROM syscolumns
WHERE [collation] IS NOT NULL

Alternatively you can use EM to script all the tables (All Tasks > Generate SQL Scripts) and examine the script by eye.

hth
Phil
 
Old November 8th, 2004, 06:56 AM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Phil, that worked for me. (I couldn't find it in the Sybex certification crib books :-)





Similar Threads
Thread Thread Starter Forum Replies Last Post
comparing date column with sql server mallikalapati ASP.NET 2.0 Professional 3 March 12th, 2008 06:06 PM
Substring-after collation bonekrusher XSLT 2 May 11th, 2007 09:31 AM
SQL Collation to Greek jmjyiannis SQL Server 2000 0 September 14th, 2005 11:59 AM
beanutils.describe throwing InvocationTargetExcept a007spy J2EE 0 September 22nd, 2004 04:31 PM
SQL Server date column and ASP treadmill SQL Server 2000 1 July 7th, 2003 08:51 AM





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