BookmarkSubscribeRSS Feed
SVoldrich
Obsidian | Level 7

team is using:

SAS EG 8.2

Personal Login Manager 9.4
I inherited this code, and it works on the old server. 


Our server is updating in the next week, so I'm going through all our queries to make sure they are pointed to the correct new server.  (New server is live now, so we can connect. work is still being done in old server until final cutover and then new server will have the most current data.)

 

This query connects through a libname. 
LIBNAME COBSPROD SQLSVR authdomain=SQLSVR database=COBS SCHEMA=DBO;

 

It's been a while since I've had to set up a libname for sql server.

I can't figure out how/where to check it's connected to the correct server. 

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

You can extract information to validate what's there, like:

proc sql;
  connect using COBSPROD;
  select * from connection to COBSPROD (select * from  sys.sysdatabases);
quit;

Extract the information that will make you confident you are using the correct server.

 

 

ChrisNZ
Tourmaline | Level 20

You can also execute commands such as:

execute by COBSPROD (drop table test_table1) ;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 142 views
  • 0 likes
  • 2 in conversation