If exixts in sql
if exists
(
select vAdmissNo,vRegNo FROM tblAdmission where vAdmissNo = '"+11+"' AND vLateral='"+Yes+"'
)
error:
Msg 102, Level 15, State 1, Line 4
Incorrect syntax near ')'.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Vishnujeet KumarRank #1,019 · 1.9K reputationPosted Dec 3, 2012, 8:54 PM EST
anil john153 reputationPosted Dec 4, 2012, 8:00 PM EST