Unix Technical Forum

Connecting to Multiple databases in a single DSN

This is a discussion on Connecting to Multiple databases in a single DSN within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Is it possible to have one ODBC client configuration connecting to multiple databases? I am trying to port an ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:32 PM
Ken
 
Posts: n/a
Default Connecting to Multiple databases in a single DSN

Is it possible to have one ODBC client configuration
connecting to multiple databases?

I am trying to port an application to SQL Server and reuse
the references to the multiple databases:

e.g.

strQuery = "Select db1.table1.*,db2.table2.* from
db1.table1 (inner join db1.table1.field1 on
db2.table2.field2) where ..."

Thanks in advance


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:32 PM
Brannon Jones [MS]
 
Posts: n/a
Default Re: Connecting to Multiple databases in a single DSN

The ODBC API does not support this, but you can use the "Distributed Query"
feature of SQL Server to do what are you trying to do. Look it up in SQL
Books Online for more information.

Brannon

"Ken" <anonymous@discussions.microsoft.com> wrote in message
news:02a101c399af$cf9c7650$a601280a@phx.gbl...
> Is it possible to have one ODBC client configuration
> connecting to multiple databases?
>
> I am trying to port an application to SQL Server and reuse
> the references to the multiple databases:
>
> e.g.
>
> strQuery = "Select db1.table1.*,db2.table2.* from
> db1.table1 (inner join db1.table1.field1 on
> db2.table2.field2) where ..."
>
> Thanks in advance
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com