Hello,
I have two databases (db1 and db2). In them I have two same tables and I need to make union of them so that I pickup all data.
Both select are the same :
select
db1.dbo.tblUsers.userid,
db1.dbo.tblUsers.name,
db1.dbo.tblUsers.datum
from db1.dbo.tblUsers
union
select
db2.dbo.tblUsers.userid,
db2.dbo.tblUsers.name,
db2.dbo.tblUsers.datum
from db2.dbo.tblUsers
but I am getting : Cannot resolve collation conflict for UNION operation.
When I run each select separetly it works ok.
Any ideas ?
Thanks,
Oliver
I have two databases (db1 and db2). In them I have two same tables and I need to make union of them so that I pickup all data.
Both select are the same :
select
db1.dbo.tblUsers.userid,
db1.dbo.tblUsers.name,
db1.dbo.tblUsers.datum
from db1.dbo.tblUsers
union
select
db2.dbo.tblUsers.userid,
db2.dbo.tblUsers.name,
db2.dbo.tblUsers.datum
from db2.dbo.tblUsers
but I am getting : Cannot resolve collation conflict for UNION operation.
When I run each select separetly it works ok.
Any ideas ?
Thanks,
Oliver