Solved

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

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
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…

749 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