Hi
i am passing three parameters to my stored procedure.
now in stored procedure i want to execute the query on the basis of given condition.
suppose i m passing para1, para2 and para3.
now i want update table1
if(para1='' or para1= null) then
'update table1 set para2='''+@para2+''' and para3='''+@para3+''''
else
'update table1 set para1='''+@para1+''' and para2='''+@para2+''' and para3='''+@para3+''' '
how can i do this???
please help...
Thanks in advance