BookmarkSubscribeRSS Feed
_LB
Fluorite | Level 6 _LB
Fluorite | Level 6
Hello all;
I am now just learning PROC SQL. I have a MS SQL database that I need to connect to. The SQL admin has made it that I have to pass along specific input parameters called:

@BeginDate smalldatetime,
@EndDate smalldatetime

into a stored procedure
which are dates.

Where do I put these parametrs? I have tried different variations without success.

Code is below;
Thank you for your help.

Lawrence

proc sql;
connect to oledb(provider=sqloledb dsn='SQLMCB23' properties=("Integrated Security"=SSPI "Persist Security Info"=True));
create table table1 as select * from connection to oledb (prcCRBSIpull);
quit; Message was edited by: ~LB
2 REPLIES 2
LinusH
Tourmaline | Level 20
This thread might give you something...

/Linus

http://support.sas.com/forums/thread.jspa?threadID=3757
Data never sleeps

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore 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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 1593 views
  • 0 likes
  • 2 in conversation