How to list all table's collation?

  • Hello all!

    How can I list all the table's collation in one Database?

    Some of the columns in the tables have a diff collation with the Database.

    I would like to list it out and correct them.

    Please help!!!!!

    Thanks

    KK

  • select object_name(object_id) as tablename, name as columnname,collation_name

    from sys.columns

    where collation_name is not null

    order by object_name(object_id),column_id

    ____________________________________________________

    Deja View - The strange feeling that somewhere, sometime you've optimised this query before

    How to get the best help on a forum

    http://www.sqlservercentral.com/articles/Best+Practices/61537

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply