<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ADODB Connection</title>
<script type="text/javascript">
var conObj = new ActiveXObject('ADODB.Connection');
var conString = "Provider=MSDAORA.1;User ID=.....";
conObj.Open(conString);
var rs = new ActiveXObject("ADODB.Recordset");
sql = "SELECT count(*) from PERIODI"
rs.open(sql, conString);
var counter=rs.fields(0).value;
alert(sql+" = "+counter);
rs.close;
conObj.close;
</script>
</head>
<body>
<h3>ADODB Connection</h3>
</body>
</html>