Solved

SAS Teradata ODBC Connection

Posted on 2011-09-30
2
2,581 Views
Last Modified: 2013-11-16
Hi,

I am relatively new to SAS. I am using Enterprise Guide 4.1 and trying to connect to a Teradata DB using ODBC. My Teradata client uses ODBC to connect to the server and I have successfully used the same ODBC to connect using R.

If I click on File->Open->ODBC... then select the same ODBC data source as I use in R and Teradata client, input my password and click OK I get the error message

Enterprise Guide cannot open the data file: ODBC;DSN=my_odbc_name; UID=my_username;PWD=*******;
Error opening data "ODBC;DSN=my_odbc_name; UID=my_username;PWD=my_password; ".
Failed to open the data set in READ mode.
Do you want to remove all references to this file from the project?

What am I doing wrong?

Thanks

Mike
0
Comment
Question by:hungoveragain
  • 2
2 Comments
 

Accepted Solution

by:
hungoveragain earned 0 total points
Comment Utility
I have found this is possible with the following code

libname TODBC odbc
datasrc = 'MyODBC'
user = 'USERNAME'
password = 'SECRET'
schema = 'SCHEMANAME'
;

This will create a library within the local server containing every table and view as its own data source.

Clicking New->ODBC and connecting to the ODBC does not work. However

BEWARE! The ODBC connection is woefully slow. If you are accessing a table / dataset of more than about 10,000 rows you will find it quicker to export to a text file and import that (yes really).

Alternately there is a SAS / ACCESS set of modules but these require licenses and some kind of server side configuration.

Mike
0
 

Author Closing Comment

by:hungoveragain
Comment Utility
This is the answer
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article describes some very basic things about SQL Server filegroups.
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

13 Experts available now in Live!

Get 1:1 Help Now