Solved

Can't see tables in the SAS library even though the ODBC connection is successfully assigned

Posted on 2009-03-31
5
2,052 Views
Last Modified: 2013-11-16
I have successfully assigned a SAS ODBC connection which points to a SQL server 2005 database and it connects successfully.

However I can't see the tables in my libref library. Does anyone know why this is? Is it an issue with SQL Server 2005 database permissions?

I can bring the SQL Server tables into SAS and use them only if I know the table name.
LIBNAME SQLDB ODBC

PROMPT = "UID = NAME; PWD = NAME; DSN = NAME; SERVER = IPADDRESS; DATABASE = DBNAME; ";

Open in new window

0
Comment
Question by:geoffcoles
5 Comments
 
LVL 4

Expert Comment

by:wigmeister
Comment Utility
Have you looked at the table schemas?

Maybe this doc will help.  It appears you have your connection set up without any issue.  The schema should allow you to see a list of tables in the database.  You can either use the SAS Query Window or SQL Passthrough, depending on what platform you are running SAS on.  Look at pages 11-13 for an explanation.  Hope this helps.

support.sas.com/techsup/technote/ts765.pdf
0
 

Accepted Solution

by:
geoffcoles earned 0 total points
Comment Utility
In the end we got it working. It involved checking our permissions on the Sql server database and also modifying the connection string to the following format so that it would work with windows authentication to sql server:

LIBNAME SQLDB ODBC
NOPROMPT= "DSN=mydsnname;" SCHEMA=myschemaname;

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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

10 Experts available now in Live!

Get 1:1 Help Now