Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Record Count

To know how many record contains a table.


<%
Dim cn,cm
Set cn = Server.CreateObject("ADODB.Connection")
cn.Open "driver={Microsoft Access Driver (*.mdb)};dbq="& Server.MapPath("Database.mdb")
set rs=cn.execute ("Select count(*) as howMany from tabella")
response.write "There are " & rs("howMany") & " records in the table"
cn.close
Set cn = Nothing
Set rs = Nothing
%>


Download code...


Print this page


 

Inizio pagina

risorse per webmaster