2个回答
展开全部
set conn1=server.CreateObject("adodb.connection")
conn1.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.MapPath("数据库1路径")
set conn2=server.CreateObject("adodb.connection")
conn2.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.MapPath("数据库2路径")
set rs1=server.CreateObject("adodb.recordset")
rs1.open "select * from 数据库1",conn1,1,1
set rs2=server.CreateObject("adodb.recordset")
rs2.open "select * from 数据库2",conn2,1,1
conn1.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.MapPath("数据库1路径")
set conn2=server.CreateObject("adodb.connection")
conn2.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.MapPath("数据库2路径")
set rs1=server.CreateObject("adodb.recordset")
rs1.open "select * from 数据库1",conn1,1,1
set rs2=server.CreateObject("adodb.recordset")
rs2.open "select * from 数据库2",conn2,1,1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询