×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Multiple ODBC data sources

Multiple ODBC data sources

Multiple ODBC data sources

(OP)
Hi,

I'm trying to use different ODBC drivers when using an SQL query.

E.g.
SQL SQLODBC
SELECT
...
END

By doing this, only the first ODBC data source is chosen.

Is there a command to chose the datasource you want to use.

Xerick

RE: Multiple ODBC data sources

I'm new to WebFocus as well but I do know that we also wanted to access multiple datasources. We've found that we need to add code to a file that is created with the master.  Someone more technical may be able to explain the reason why but I know this has worked for our shop.  


For each master created a second file .acx is created in the same directory as the master.  Open this file in notepad and add the SERVER= line to your code..... with your information.......

SEGNAME=GLACK   ,                                 
TABLENAME=AFS.GLACK,
SERVER=DBADEPT,                                             
KEYS=0                                                                          
,$                    

Hope this helps and if I've stated anything incorrectly maybe someone else will jump in and correct me.....

RE: Multiple ODBC data sources

Try this in a fex when you sart a session or at any time in a focexec when you need it :

SQL SQLODBC SET USER ODBC1
SQL SQLODBC SET USER ODBC2
SQL SQLODBC SET USER ODBC3
-RUN;


where THE ODBC1/2/3 are DSNAMES implemented via Control Panel / Data Source(odbc) in Windows

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close