Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.spt_tablecollations_view

 

This is a view in the mssqlsystemresource database.




Syntax

create view sys.spt_tablecollations_view
as
    select
    -- begin (for doing joins)
        object_id           = o.object_id,
        schema_id           = o.schema_id,
    -- end (for doing joins)
        colid               = c.column_id,
        name                = c.name,
        tds_collation_28    = convert(binary(5),
                                      case -- special-case XML and new DateTime types for downlevel clients
                                      when c.system_type_id in (241, 40, 41, 42, 43)  then
                                        CollationProperty(convert(sysname, ServerProperty('collation')),
                                                          'tdscollation')
                                      else
                                        CollationProperty(c.collation_name,
                                                          'tdscollation')
                                      end),
        tds_collation_90    = convert(binary(5),
                                      case -- special-case new DateTime types for downlevel clients
                                      when c.system_type_id in (40, 41, 42, 43)  then
                                        CollationProperty(convert(sysname, ServerProperty('collation')),
                                                          'tdscollation')
                                      else
                                        CollationProperty(c.collation_name,'tdscollation')
                                      end),
        tds_collation_100   = convert(binary(5),
                                      CollationProperty(c.collation_name,'tdscollation')),
        collation_28        = convert(sysname,
                                      case -- special-case XML and new DateTime types for downlevel clients
                                      when c.system_type_id in (241, 40, 41, 42, 43) then ServerProperty('collation')
                                      else c.collation_name
                                      end),
        collation_90        = convert(sysname,
                                      case -- special-case new DateTime types for downlevel clients
                                      when c.system_type_id in (40, 41, 42, 43)  then ServerProperty('collation')
                                      else c.collation_name
                                      end),
        collation_100        = convert(sysname, c.collation_name)
    from
        sys.all_columns c inner join
        sys.all_objects o on
            (
                c.object_id = o.object_id
            )
    where
        c.is_sparse = 0 OR objectproperty(o.object_id, 'tablehascolumnset') = 0

 
Last revision SQL2008SP2
See also

  sp_tablecollations (Procedure)
sp_tablecollations_100 (Procedure)
sp_tablecollations_90 (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash