BookmarkSubscribeRSS Feed
samirt
Fluorite | Level 6

I want to know for using pass through facility of SQL in SAS is there need to install some service. This question arised because of the following ERROR in the log

ERROR: The SQLSERVE engine cannot be found.

ERROR: A Connection to the sqlserver DBMS is not currently supported, or is not installed at your site.

7 REPLIES 7
SASKiwi
PROC Star

In general you need the appropriate SAS/ACCESS product installed and licensed to be able to connect to an external database regardless of the method, LIBNAME, PASSTHRU, SQL etc.

You can confirm what SAS products are licensed by running PROC SETINIT.

What database are you trying to connect to? Your errors suggest SQL Server. In which case you will need SAS/ACCESS to SQL Server, or SAS/ACCESS to ODBC. Your choice may depend on what operating system your SAS server runs on. 

samirt
Fluorite | Level 6

Thanks for the reply

When i submit proc setinit i got the following:-

---SAS/ACCESS Interface to PC Files                                                                
---SAS/ACCESS Interface to ODBC                                                                    

---SAS/ACCESS Interface to MySQL      

So i have question whether i am able to use PROC SQL pass through or not                                                           

Doc_Duke
Rhodochrosite | Level 12

With those products, you can use Pass-thru.  With ODBC, you will need the appropriate drivers for your target database installed.  On Windows, you can technically do it yourself, but you may need your IT support to provide the proper parameterization.

SASKiwi
PROC Star

As Doc says you have the right products. Please post the code that gave you the errors you put in your first post. Also which database are you trying to connect to?

My guess is you are trying to use the SQL Server engine when you should be using ODBC: libname test ODBC dsn=xxxx etc.

samirt
Fluorite | Level 6

Thanks for the reply

I am connecting ot SQL server using pass through facility

Can you provide me the code for this so that it will be error free

Thanks in advance

samirt
Fluorite | Level 6

I submitted the following code

Proc sql;

Connect to odbc(datasrc=tribal user=** password=****);

Create table work.account as

Select * from connection to odbc

(Select *

   From tribal.uu);

Disconnect from odbc;

Quit;

ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] The specified DSN contains an

       architecture mismatch between the Driver and Application

ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no

       default driver specified

ERROR: Connection to the odbc DBMS does not exist

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 1808 views
  • 0 likes
  • 4 in conversation