摘要:
//总记录数function sumRecord(){ var conn= Server.CreateObject("ADODB.connection"); var rs= Server.CreateObject("adodb.recordset"); conn.open("PROVIDER=SQLOLEDB;DATA SOURCE=127.0.0.1;UID=sa;PWD=123456;DATABASE=test"); var sql = "select count(*) as RecordCount from baomi 阅读全文
摘要:
//总记录数function sumRecord(){ var conn= Server.CreateObject("ADODB.connection"); var rs= Server.CreateObject("adodb.recordset"); conn.open("PROVIDER=SQLOLEDB;DATA SOURCE=127.0.0.1;UID=sa;PWD=123456;DATABASE=test"); var sql = "select count(*) as RecordCount from baomi 阅读全文
摘要:
第一种 JavaScript连接数据库:<mce:script language="JavaScript"><!--// 创建数据库对象var objdbConn = new ActiveXObject("ADODB.Connection");// DSN字符串var strdsn = "Driver={SQL Server};SERVER=192.168.0.210;UID=xhb;PWD=xhb;DATABASE=books";// 打开数据源objdbConn.Open(strdsn);// 执行SQL的数据库 阅读全文