‘定义变量 Dim cn,rs,Sql Sql = “select CustomerID from Orders” ‘记录总数 Dim TotalNumbe Set cn = Server.CreateObject(“ADODB.Connection”) cn.Open “Provider=SQLOLEDB.1;User ID=sa;Initial Catalog=NorthWind;Data Source=.;Password=;” Set rs = Server.CreateObject(“