I'm not sure the SELECT 'Exists' = 1
is a valid statement. Can you run just that?You might try making some other action, like:IF EXISTS (SELECT * FROM admin WHERE UserName = 'jSchmoe') SELECT * FROM admin WHERE UserName = 'jSchmoe'
Alternatively, you might not do the whole exists thing in the SQL statement. In classic ASP, you might execute an SQL statement like:SELECT * FROM admin WHERE UserName = 'jSchmoe'
Then, in ASP you can check if you got any records:if rs.EOF then response.write("No record found.")else response.write("We found a record for user: "&rs("UserName"))end if