-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: BalajiKrishnan
Message 1 in Discussion

Can any one tell what's wrong in the syntax   When i try to create this SP it gives an 
error :   Server: Msg 170, Level 15, State 1, Procedure testmol, Line 13
Line 13: Incorrect syntax near '@strSQL1'.
   Create procedure testmol
@tabid as varchar(10),
@param1 as float(10),
@param2 as float(20) As DECLARE @strSQL1 varchar(2000) set @strSQL1 = 'Update ' + 
@tabid + ' Set tparam1 = ' + CAST(@param1 as varchar)
if @param2 = '1' 
begin
@strSQL1 = @strSQL1 +  ',' + ' tparam2 = ' + CAST(@param1 as varchar)
end
print @strSQL1
   pls help me asap.   thanks Balaji

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to