Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
the output of sp I've written bellow is a decimal value , what's wrong with these codes ? (as I did execute this sp ,it returns 0.0 by these parameters)

declare @Existance decimal(18,0) set @Existance = exec SALSetExists4Exporttoinv;1 @SGL,null,null,null,null,null,null,null,null

if ( @Existance !> 0.0 )
.
.
.

there is a syntax error in line 2 , I can't fix it!
Posted

1 solution

SQL
set @Existance = exec SALSetExists4Exporttoinv;1 @SGL,null,null,null,null,null,null,null,null

should be...
SQL
set @Existance = exec SALSetExists4Exporttoinv 1 @SGL,null,null,null,null,null,null,null,null;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900