Buono sconto 4% su Toner e Cartucce agli utenti AZpoint. SU Iomiricarico.it!!
Introduzione
Lo script di oggi ci illustrerà come identificare il numero di record restituiti da una query :
Codice per lo script
<%
Dim oConn,oRS
Set oConn = Server.CreateObject("ADODB.Connection")
DataBasePath = "c:\inetpub\wwwroot\database\db.mdb"
oConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & DataBasePath
SQL = "Select count(*) As NumeroRecord From tabella")
Set oRS = oConn.Execute(SQL)
Response.Write "Record nel database: " & oRS("NumeroRecord")
Set oRS = Nothing
oConn.Close
Set oConn = Nothing
%>
|