Create Proc ProcName AS BEGIN @aOLDCITYID INT IF ISNULL(@aOLDCITYID,0) <>0 BEGIN Insert into table(city ,Isactive) values('New City',1) update table set Isactive=0 where city='old city' and ID='Old City ID' END Else Begin Print 'Hello' End END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)