Set Conn = Server.CreateObject("ADODB.Connection")
' Access数据库
'Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("data.mdb")
' SQL Server 2000数据库
Conn.Open "Provider=SQLOLEDB.1;Server=localhost;UID=azf;PWD=111111;Database=azf"
' SQL Server 2004数据库
Conn.Open "Provider=MSDASQL;DRIVER={SQL Server};SERVER=localhost;UID=azf;PWD=111111;DATABASE=azf"
' Access数据库
'Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("data.mdb")
' SQL Server 2000数据库
Conn.Open "Provider=SQLOLEDB.1;Server=localhost;UID=azf;PWD=111111;Database=azf"
' SQL Server 2004数据库
Conn.Open "Provider=MSDASQL;DRIVER={SQL Server};SERVER=localhost;UID=azf;PWD=111111;DATABASE=azf"