BookmarkSubscribeRSS Feed
SASDump
Calcite | Level 5
Hi there, i wonder if there is any practical way to update data in MSSQL through EG with direct modification on data value in a dataview.

I currently assigned a library referencing to MSSQL database and direct open the data in the library with data protect off to have direct modification on MSSQL data.

I wonder if there is any other method, please advice thanks
5 REPLIES 5
DBailey
Lapis Lazuli | Level 10
You should be able to use the normal SAS update procedures like proc sql or data step modify.
SASDump
Calcite | Level 5
Yes, I know I could use SAS procedure SQL or data step to update. I am just asking for alternative with direct modification on data just by dataview. And i am asking if I am using the practical way to perform this? I just wndering if there is other way to do such purpose. Please advice thanks!
LinusH
Tourmaline | Level 20
If you are limited to EG, I would say no.
We have also tried to use it to update data, and it doesn't work too well on all scenarios.
Is there are specific problem which makes you looking for an alternative?

/Linus
Data never sleeps
SASDump
Calcite | Level 5
well, actually updating via sas dataset can be the solution of my case for direct updating the data in MSSQL table. I am just trying figure out if there is any alternative only as i am a nobody in SAS environment and just want to have some feedback from you guys expert or experienced programmer in SAS. Thanks for your reply!
LinusH
Tourmaline | Level 20
Updating via data viewer can work ok, but it's not ideal.
Things to consider:
-Avoid meta libanme
-Defaults constraints: it won't work, especially together with NOT NULL constraint.

/Linus
Data never sleeps

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
  • 5 replies
  • 984 views
  • 0 likes
  • 3 in conversation