Click here to Skip to main content
14,970,345 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
I have many databases and have the same table
Posted
Comments
   
Not clear.
—SA
King Fisher 11-Oct-14 1:00am
   
update your Question with More Info.

1 solution

Read the documentation here : Inserting, Updating, and Deleting Data by Using MERGE[^]

To access tables in other databases use the full name for that table :
SQL
select * from databasename.dbo.tablename 

; replace databasename and tablename with the ones you want
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900