Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SAS Teradata ODBC Connection

Posted on 2011-09-30
2
Medium Priority
?
2,995 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
[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
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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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