[求助]数据库连接
请问各位高手,用以下代码可以连接SQL数据库吗?它是否有错误呢?<%
dim conn,user25175,master25175,admin25175,site_name,site_logo
user25175=session("user25175")
master25175=session("master25175")
admin25175=session("admin25175")
set conn = Server.CreateObject("ADODB.Connection")
str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("./school.mdb")
conn.open str
set rs=conn.execute("select sitename,sitelogo from siteinfo where sid=1")
site_name=rs("sitename")
site_logo=rs("sitelogo")
set rs=nothing
%>