Solved

Can a single ODBC source connect to more than one database?

Posted on 2010-08-17
3
272 Views
Last Modified: 2012-05-10
Is it possible to define a SYSTEM ODBC DSN that will point to two databases at one time?
I don't think it is possible but there is no harm in asking.

pat
0
Comment
Question by:mpdillon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Larissa T earned 500 total points
ID: 33458287
I don't think so, but you can query tables from any database as long as your user has access to this db
as
select top 10 * from [dbname1].[tableOwner1].[tableName1] t1
join [dbname2].[tableOwner2].[tableName2] t2 on ...
0
 

Author Comment

by:mpdillon
ID: 33458373
Trofimoval
Thanks. Yeah, I do that all the time but today I am working with a product that uses only DSN and their query builder does not support the DatabaseName.dbo.TableName.

Thanks,
pat
0
 
LVL 11

Expert Comment

by:Larissa T
ID: 33464594
You can try to create view or table functions for tables you need from 2-nd db. Of wrap your multi- database queries into table functions. Most likely those will be visible to you in your product as regular tables.
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question