Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening 2 databases in one connection

Status
Not open for further replies.

Niavlys

IS-IT--Management
Jun 3, 2002
197
CA
Hi,
Is is possible to open 2 databases, from the same SQL server, from just one Connection.

Code:
	objConn.Open "Driver={SQL Server};" & _
         		 "Server=10.0.0.18;" & _
   			     "Address=10.0.0.18,1433;" & _
     			 "Network=DBMSSOCN;" & _
           		 "Database= DB1 & _  
           		 "Uid=Username;" & _
           		 "Pwd=Password"

I'm using this DSN less connection type. I need to join data from 1 table in one database with 4 other tables in another database.

Thanks!
 
I don't know what the SQL server version of this is but in oracle its called a Database Link.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top