Solved

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

Posted on 2009-03-31
5
2,083 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MSSQL Convert Char To Date 4 54
Grid querry results 41 73
What are the cons and prose using 1 POC VM spanning a whole blade vs multiple VMs on 1 blade? 7 83
CROSS APPLY 4 45
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…

862 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

28 Experts available now in Live!

Get 1:1 Help Now