Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-12-16 : 08:09:24
|
| steve writes "How do I make a database search using asp case insensitive. by default it is case sensitive. here is the exact code if neededcheck_user.asp:@ LANGUAGE="VBSCRIPT" Dim adoCon 'Database Connection VariableDim strCon 'Holds the Database driver and the path and name of the databaseDim rsCheckUser 'Database Recordset VariableDim strAccessDB 'Holds the Access Database NameDim strSQL 'Database query sringDim strUserName 'Holds the user namestrUserName = Request.Form("txtUserName")strSQL = "SELECT KMEA.Last_Name FROM KMEA WHERE KMEA.Member_ID ='" & strUserName & "'"Set conn = Server.CreateObject("ADODB.Connection")conn.open "kmea"Set rsCheckUser = Server.CreateObject("ADODB.Recordset")rsCheckUser.Open strSQL, connIf NOT rsCheckUser.EOF Then If (Request.Form("txtUserPass")) = rsCheckUser("Last_Name") Then Session("blnIsUserGood") = True Set conn = Nothing Set rsCheckUser = Nothing Response.Redirect"inyougo.asp?name=" & strUserName End IfEnd If Set conn = NothingSet rsCheckUser = NothingSession("blnIsUserGood") = FalseResponse.Redirect"unauthorised_user_page.htm"" |
|
|
MaverickUK
Yak Posting Veteran
89 Posts |
Posted - 2002-12-16 : 09:00:41
|
| I'd say change the linestrSQL = "SELECT KMEA.Last_Name FROM KMEA WHERE KMEA.Member_ID ='" & strUserName & "'" tostrSQL = "SELECT KMEA.Last_Name FROM KMEA WHERE UPPER( KMEA.Member_ID ) ='" & UCASE( strUserName ) & "'" should do the trick? |
 |
|
|
|
|
|