SyntaxFix
Write A Post
Hire A Developer
Questions
What the output that you need, select or print or .. so on.
select
print
so use the following code:
IF EXISTS (SELECT * FROM tblGLUserAccess WHERE GLUserName ='xxxxxxxx') select 1 else select 2