Solved

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

Posted on 2010-08-17
3
266 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
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Larissa T earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now