----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Arian_Intellect Message 4 in Discussion put a SET before that variable on the left side like SET @strSQL1 = @strSQL1 + ',' + ' tparam2 = ' + CAST(@param1 as varchar) ' Shaju Thomas e-Cosmos Technologies Ltd., Mail: [EMAIL PROTECTED] Phone(Off) : 51217037/38 Extn: 132 Mobile: +91 98455 21794 ----- Original Message ----- From: BalajiKrishnan To: BDOTNET Sent: Friday, November 21, 2003 11:15 AM Subject: SP - Syntax Error Problem ----------------------------------------------------------- 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] ----------------------------------------------------------- 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]
