• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

SQL in an active server page - HELP!!!!!!!!!!

acejj26

Senior member
Okay, in my ASP, I need to write one SQL statement that brings back data from two separate databases (not two tables in the same database). My connect statements are:

Set objRS2 = Server.CreateObject("ADODB.Recordset&quot😉
Set objConn2 = Server.CreateObject("ADODB.Connection&quot😉

strConnection2="Driver={SQL Server};Server=Maverick;Database=salesreports;;UID=sa"
objConn2.Open strConnection2

However, I want to connect to another database called 'location' and then bring back data values from both databases where the value in field A in 'sales reports' equals the value in field B in 'location'. Anyone know how to change the strConnection2 statement above to accomodate for two separate databases???? Please help!
 
Back
Top