Added: May/27/2006 at 9:56am | IP Logged
|
|
|
the code to do so:
dim intDeletedRecords intDeletedRecords=0
objStr = "DELETE FROM maildata WHERE (Mail='"&Request.Form("Email")&"' AND MailRole='CC');" Set objConn = Server.CreateObject("ADODB.Connection") Set objRS = Server.CreateObject("ADODB.Recordset")
objConn.Open "DSN=DBName-MySQL"
objrs.open objStr,objConn,2,3
do until objrs.eof intDeletedRecords=intDeletedRecords+1 objrs.delete objrs.update objrs.movenext loop response.write "The Number of deleted records is:" & intDeletedRecords
objConn.close Set objConn = Nothing : Set objRS = Nothing
Hope this helps
Best Regards
__________________ Firas S Assaad (TheGeek)
firas489@gmail.com
0096892166434
http://firas-thegeek.blogspot.com
|