Hi all,I am retrieving a single cahracter from a SQL table (SQL 2000) using the substring method and then checking it against a value that has been passed in as followsDECLARE @Check as char(1)SET @Check = (SELECT TOP 1 substring(WebPassword,@T1,1) As 'PasswordLength' from Logon L, LogonPassword LP where L.LogonRefNo = LP.LogonRefNo and L.LogonRefCode = @LogonRefCode) IF @Check <> @S1 SET @Result = 1
But now they are passing in Y and y is returning okay. How do I get around this?Thanks,Gavin