Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p></p>
<script type="text/javascript">
var connection = new ActiveXObject("ADODB.Connection");
var connectionstring = "Driver={Oracle in OraClient12Home1};Dbq=xxx;Uid=xxx;Pwd=xxx"; // var connectionstring ="Driver={Oracle in OraHome92};Dbq=xxx;Uid=xxx;Pwd="xxx;
connection.Open(connectionstring);
var rs = new ActiveXObject("ADODB.Recordset");
rs.Open("your select", connection);
//connection.Execute("your executing select", connection);
if (rs.eof == true) {
}
else
{
rs.MoveFirst;
while(!rs.eof)
{
document.getElementsByTagName("p")[0].innerHTML = rs.fields(1);
rs.movenext;
}
}
rs.close;
connection.close;
</script>
</body>
</html>
// important : ActiveXObject works only for IE (new ActiveXObject("ADODB.Connection"))
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507