Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Sql Azure Simple Query running issue Expand / Collapse
Author
Message
Posted Thursday, January 12, 2012 2:03 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: 2 days ago @ 11:26 PM
Points: 87, Visits: 217
Dear friends,

I am having two different database like 'LiveDB' and 'MFDB'
both are having a common table named 'TB_Transaction'
now i need to select all record that exist in both databases.

when i run the following query:

select * from LiveDB.Dbo.TB_Transaction
union
select * from MFDB.Dbo.TB_Transaction

this gives an error.
Reference to database and/or server name in 'livedb.dbo.tb_transaction' is not supported in this version of SQL Server.

Plz tell me what is the alternate way to accomplish this task.
Post #1234573
Posted Monday, June 10, 2013 2:03 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 10, 2014 5:39 PM
Points: 40, Visits: 79
Do the two table schema compatible for a UNION?
Post #1461762
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse