[Quote=引用 9 楼 snowryxc 的回复:]
var conn = new ActiveXObject("ADODB.Connection");
conn.Open("Provider=SQLOLEDB.1;
Data Source=localhost; User ID=sa; " +"Password=; Initial Catalog=pubs");
var rs = new ActiveXObject("ADODB.Recordset");
var sql="select * from authors";
rs.open(sql, conn);
shtml = " <table width='100%' border=1&g ...
var conn = new ActiveXObject("ADODB.Connection");
conn.Open("Provider=SQLOLEDB.1;
Data Source=localhost; User ID=sa; " +"Password=; Initial Catalog=pubs");
var rs = new ActiveXObject("ADODB.Recordset");
var sql="select * from authors";
rs.open(sql, conn);
shtml = "<table width='100%' border=1&g ...