Jan 31, 2003 #1 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)"
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)"
Jan 31, 2003 #2 agoeddeke Programmer Jul 23, 2002 201 US Bradley21, Do either one of these work? =SQLExec(MyConnection, "{CALL myproc (?var1, ?var2)}" or =SQLExec(MyConnection, "{CALL myproc (?@var1, ?@var2)}" Andy Upvote 0 Downvote
Bradley21, Do either one of these work? =SQLExec(MyConnection, "{CALL myproc (?var1, ?var2)}" or =SQLExec(MyConnection, "{CALL myproc (?@var1, ?@var2)}" Andy
Jan 31, 2003 #3 Mike Gagnon Programmer Apr 6, 2002 8,067 CA 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. Upvote 0 Downvote
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.
Jan 31, 2003 #4 rgbean Programmer Nov 9, 2000 5,707 US 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 Upvote 0 Downvote
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
Feb 1, 2003 #5 Mike Lewis Programmer Jan 10, 2003 17,516 Scotland Bradley, It will be easier to diagnose the problem if you could tell us: - What error are you seeing? - What is the code in your stored procedure? Mike Lewis Edinburgh, Scotland http://www.ml-consult.demon.co.uk Upvote 0 Downvote
Bradley, It will be easier to diagnose the problem if you could tell us: - What error are you seeing? - What is the code in your stored procedure? Mike Lewis Edinburgh, Scotland http://www.ml-consult.demon.co.uk