0 LIKES LikeUnLike
Using SQL Server 2005..You can see what I am trying to do from the SQL below............DECLARE@SQLStr Varchar(1000);@TestVar Varchar(1)SET @TestVar = '1'--Build the sql depending on......IF @TestVar = '0' THEN SET @SQLStr = 'Select * from MyTable'ELSE SET @SQLStr = 'Select * from MyTable Where MyTable.Id = ' @TestVar--Execute the SQLExec @SQLStr
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.