When I try to test my this sql query I get an error message
Cannot resolve collation conflict for UNION operation
SELECT * FROM(SELECT 'ARTSTATDB' AS DB, [NAME] FROM ARTSTATDB..SYSOBJECTS WHERE [NAME] IN ('ARTIKEL_STAT')) A
Union
(SELECT 'STOREPOS' AS DB, [NAME] FROM STOREPOS..SYSOBJECTS WHERE [NAME] IN ('STORECREDIT', 'GIFTCERTIFICATE'))
ORDER BY DB
The collation of database ARTSTATDB is FINNISH_SWEDISH_CI_AS
The collation of database STOREPOS is SQL_LATIN1_GENRAL_CP1_CI_AS
Is it possible to ignore collation in my sql or something like that, just to make my sql to work?
George
Cannot resolve collation conflict for UNION operation
SELECT * FROM(SELECT 'ARTSTATDB' AS DB, [NAME] FROM ARTSTATDB..SYSOBJECTS WHERE [NAME] IN ('ARTIKEL_STAT')) A
Union
(SELECT 'STOREPOS' AS DB, [NAME] FROM STOREPOS..SYSOBJECTS WHERE [NAME] IN ('STORECREDIT', 'GIFTCERTIFICATE'))
ORDER BY DB
The collation of database ARTSTATDB is FINNISH_SWEDISH_CI_AS
The collation of database STOREPOS is SQL_LATIN1_GENRAL_CP1_CI_AS
Is it possible to ignore collation in my sql or something like that, just to make my sql to work?
George