Solved

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

Posted on 2009-03-31
5
2,104 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
ID: 24049517
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
ID: 24076510
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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!
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
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…

813 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

14 Experts available now in Live!

Get 1:1 Help Now