Solved

SAS Teradata ODBC Connection

Posted on 2011-09-30
2
2,622 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
ID: 36923294
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
ID: 36923296
This is the answer
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
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…

914 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

17 Experts available now in Live!

Get 1:1 Help Now