Home Forums SQL Server 2008 T-SQL (SS2K8) COLLATION Between two databases, checking on which collate to use RE: COLLATION Between two databases, checking on which collate to use

  • You may use COLLATE DATABASE_DEFAULT for columns coming from other databases.

    Unless some tables in the database have not DB default collation.

    Same for temp tables:

    CREATE TABLE ##TS_ACCT (

    [TS_ID] [nvarchar](100) COLLATE DATABASE_DEFAULT NULL

    )

    _____________
    Code for TallyGenerator