Click here to Skip to main content
15,907,395 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to create a connection between 2 database in a query?
Posted

You can write SQL statements like

SQL
SELECT database1.table2.*,database2.table33.id FROM database1.table2,database2.table33


See http://www.cftips.net/post.cfm/simple-t-sql-to-copy-table-from-one-database-to-another[^]
 
Share this answer
 
v2
You use a JOIN. Check this[^].
 
Share this answer
 

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