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-01-09 : 10:06:13
|
| Kelley writes "my form page iswww.busterboo.com/pswdrecovery.aspmy asp mail page using CDONTS iswww.busterboo.com/sendmail.aspI have tried everything and cannot get this to work. Please HELP!! I believe the problem is with my SELECT string (see below)Kelleykpweld@hotmail.comDim rsrecovery__strTorsrecovery__strTo = Request("email")'Create a recordsetset rsrecovery = Server.CreateObject("ADODB.Recordset")rsrecovery.ActiveConnection = MM_members_STRINGrsrecovery.Source = "SELECT uname, pswd1, fname, lname FROM Table1 WHERE email = " & rsrecovery__strTorsrecovery.CursorType = 0rsrecovery.CursorLocation = 2rsrecovery.LockType = 3rsrecovery.Open()rsrecovery_numRows = 0" |
|
|
Nazim
A custom title
1408 Posts |
Posted - 2002-01-09 : 10:21:27
|
| rsrecovery.Source = "SELECT uname, pswd1, fname, lname FROM Table1 WHERE email = '" & rsrecovery__strTo & "'"hth----------------------------Anything that Doesn't Kills you Makes you Stronger |
 |
|
|
lfmn
Posting Yak Master
141 Posts |
Posted - 2002-01-09 : 10:54:23
|
in the future, if you think the problem is on the sql side, you can just do a response.write of the sql string and paste it into query analyzer. dim sqlsql = "SELECT uname, pswd1, fname, lname FROM Table1 WHERE email = " & rsrecovery__strToresponse.write sqlresponse.endrsrecovery.Source = sqlquote: Kelley writes "my form page iswww.busterboo.com/pswdrecovery.aspmy asp mail page using CDONTS iswww.busterboo.com/sendmail.aspI have tried everything and cannot get this to work. Please HELP!! I believe the problem is with my SELECT string (see below)Kelleykpweld@hotmail.comDim rsrecovery__strTorsrecovery__strTo = Request("email")'Create a recordsetset rsrecovery = Server.CreateObject("ADODB.Recordset")rsrecovery.ActiveConnection = MM_members_STRINGrsrecovery.Source = "SELECT uname, pswd1, fname, lname FROM Table1 WHERE email = " & rsrecovery__strTorsrecovery.CursorType = 0rsrecovery.CursorLocation = 2rsrecovery.LockType = 3rsrecovery.Open()rsrecovery_numRows = 0"
cursors are like hammers - sometimes you have to use them, but watch your thumb! |
 |
|
|
|
|
|
|
|