Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access stored procedure

Status
Not open for further replies.

BRADLEY21

Programmer
Sep 19, 2002
35
US
I tried to pass a variables to a stored procedure on MSSQL however it does not work. The code looks like this. Anyone have ideas?

=SQLEXE(MyConnection,"myproc(var1,var2)")

 
Bradley21,

Do either one of these work?

=SQLExec(MyConnection, "{CALL myproc (?var1, ?var2)}")
or
=SQLExec(MyConnection, "{CALL myproc (?@var1, ?@var2)}")

Andy
 
agoeddeke

=SQLExec(MyConnection, "{CALL myproc (?var1, ?var2)}")

That just looks strange...Are you missing a bracket?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike,
It looks balanced to me. Note: Technically there are two set of balanced parenthesis ()'s and one set of Braces {}'s.

Brackets are [].

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top