[MSSQL] ODBC
From: Marek Powichrowski (marekp_at_telbank.pl)
Date: 09/25/04
- Next message: Ralph: "Re: Poor VB Programming"
- Previous message: John Bell: "Re: OSQL Problem"
- Next in thread: The Margolins: "Re: [MSSQL] ODBC"
- Reply: The Margolins: "Re: [MSSQL] ODBC"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 25 Sep 2004 21:08:17 +0200
Hi all,
is it possibile to access two (or more) database tables using ODBC driver
for MSSQL 2000 ?
I have the select statement :
SELECT K.field1,
O.field1,
O.field2
O.field3
FROM ( table1 AS O
LEFT OUTER JOIN other_database_name.table2 AS K ON O.id = K.id )
WHERE O.field4 IS NULL or O.field4 = 0
ORDER BY field1, field2, field3
When using OLEDB provider the this statement is executed without any errors.
But when this statement is executed using ODBC then MSSQL return error
message "Unknown object 'other_database_name.table'". What is wrong ?
Simple select statement (for one database) for the same connection string
runs OK when using ODBC connection (with the same connection string).
TIA,
Marek Powichrowski
- Next message: Ralph: "Re: Poor VB Programming"
- Previous message: John Bell: "Re: OSQL Problem"
- Next in thread: The Margolins: "Re: [MSSQL] ODBC"
- Reply: The Margolins: "Re: [MSSQL] ODBC"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|