Link to home
Start Free TrialLog in
Avatar of Gemini532
Gemini532Flag for United States of America

asked on

if NOT EXIST does not work for the select statment in the stored procedure even if the field is blank

if "NOT EXIST" is the type of code that for some reason  does not work for the select statment in the stored procedure even if the field is blank

Can you help write the correct code....
SELECT @user=UserId FROM tableName id = @id
IF NOT EXISTS(SELECT [test] FROM tableName WHERE  id = @id)
BEGIN

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial