BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I'm very very new to SAS so i'm sorry if I posted this in the incorrect place.

I'm trying to connect to SAS from a C#.net web app. I can't find a good tutorial on how to do this and with what objects.

Do I have to use some SAS objects or can I use the .net OLE DB connection object?

Thank You for any help

Jerry
3 REPLIES 3
LinusH
Tourmaline | Level 20
If you just want to retrieve data, other possibilities might exist (and requirements for licensed software). See on-line doc for OLE DB processing with SAS:

http://support.sas.com/documentation/tools/oledb/

/Linus
Data never sleeps
deleted_user
Not applicable
Thank you both for your tips.
I have it going now but I keep getting errors with the Com components.
How can I get the workspacemanager component to show up in dcomcnfg?

I keep getting an error on this line of code:
Workspace ws = (Workspace)wsm.Workspaces.CreateWorkspaceByServer("",
SASWorkspaceManager.Visibility.VisibilityProcess, null, "", "", out
errorMessage);

Error
System.Runtime.InteropServices.COMException:



0

0x80080005
Server execution failed




Thank you
Jerry

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 4540 views
  • 0 likes
  • 2 in conversation