How to get the No of Affected Records in ASP + ADODB + Javascript ?
am 06.12.2006 14:15:33 von k.visubeanyone give a look at my problem.
Here is my problem.
This is a snippet in my ASP project
here in i ve used javascript as the scripting language..
var lngRecsAffected=0;
var sql="update tbl_usermaster SET pass='" + newPass + "' where
uname='admin' and pass='"+ oldPass +"'" ;
RSCommand.Commandtext=sql;
RSCommand.Activeconnection=con;
RSCommand.Execute (lngRecsAffected) ;
Response.Write("
Records Affected : "+lngRecsAffected);
here i am getting 0 as response for the successful updation as well
as unsuccessfull updation.
In Vbscript i know how to find the no of afftected records while
executing a update/delete/insert query..
but here in javascript i dont know the procedure to get no of affected
records.
Based on that value i will show response messages like records updation
is successful or failure so on..
Can anyone help me in this regard.?
Advance thanx for the suggestions.
Regards,
Visu.