BookmarkSubscribeRSS Feed
AnnBlakeslee
Fluorite | Level 6

I've got SQL Server tables set up in Metadata and they work fine.  The trouble is, my SQL Server DBA is complaining that we have dozens of apparently "orphaned" SQL Server processes that are left by the users of SAS Studio.  How do I make SAS Studio clean up the connections?  

4 REPLIES 4
SASKiwi
PROC Star

How are your SQL Server data sources set up in metadata - are they pre-assigned or not? If they are pre-assigned you should also add the defer = yes option so database connections are only created if the data source is opened.

AnnBlakeslee
Fluorite | Level 6
Sounds logical. Let me give it a shot! Do I need to restart the SAS
Connect Server to make this option kick in?

##- Please type your reply above this line. Simple formatting, no
attachments. -##
Ann Blakeslee
Institute for Health Research (IHR)
(303) 614-1359


NOTICE TO RECIPIENT: If you are not the intended recipient of this
e-mail, you are prohibited from sharing, copying, or otherwise using or
disclosing its contents. If you have received this e-mail in error,
please notify the sender immediately by reply e-mail and permanently
delete this e-mail and any attachments without reading, forwarding or
saving them. Thank you.
SASKiwi
PROC Star

No. Just disconnecting your workspace SAS session and reconnecting should do the trick. You may want to check with your SQL Server DBA as well to see if there is a server connection timeout he can set. I'd suggest something like 24 hours.

 

Where I work we close all SAS workspace sessions at 2am so we can replicate our SAS environment. This will also drop all database connections. 

AnnBlakeslee
Fluorite | Level 6

Checked with my DBA this morning and we still have lots of stray connections.  The person who signed on has a connection to a test database he never even uses  We have large statisticl modeling jobs that run overnight, so closing SAS workspace might be a little dicey for us.  I'm wondering about the "Whether to automatically drop utility connections" option?   I'll do some more research.

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!

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
  • 4 replies
  • 1231 views
  • 1 like
  • 2 in conversation