If I have a database with a collation..."SQL_Latin1_General_Pref_CP1_CI_AS"On a Server Defined As"SQL_Latin1_General_CP1_CI_AS"And I create a Global Temporary Table in a procedured compiled in the "SQL_Latin1_General_Pref_CP1_CI_AS" collation...what collation is the Temp table created under?I'm asking because all of a sudden on 2k5, I'm gettingMsg 468, Level 16, State 9, Line 2Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_Pref_CP1_CI_AS" in the equal to operation.
Where I don't think I had this problem before on 2000...of course I could be wrong...but this I believe is the suspect codeTRUNCATE TABLE FK_create_codeSET @DYSQL = 'declare cstrts cursor fast_forward read_only for SELECT DISTINCT c.[TABLE_SCHEMA] , c.[TABLE_NAME] , u.CONSTRAINT_NAME FROM ' +@dbname+'.[INFORMATION_SCHEMA].[COLUMNS] c JOIN ##Key_Column_usage u ON c.[TABLE_NAME] = u.[TABLE_NAME] AND c.[TABlE_SCHEMA] = u.[TABLE_SCHEMA] AND c.[COLUMN_NAME] = u.[COLUMN_NAME] JOIN ##TABLE_CONSTRAINTS t ON u.[CONSTRAINT_NAME] = t.[CONSTRAINT_NAME] WHERE t.[CONSTRAINT_TYPE] = ' + '''FOREIGN KEY'''
Any thoughts?Brett8-)Hint: Want your questions answered fast? Follow the direction in this linkhttp://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxAdd yourself!http://www.frappr.com/sqlteam