数据库连接错误--急
日期:2006-09-01 荐:
数据库连接错误--急Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x298c Thread 0x11dc DBC 0x7fda214 Jet'. /conn_hjh.asp, line 5 这个是原因<%dim conn,connstrset conn=server.CreateObject("adodb.connection")connstr="provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.MapPath("data\shopddmdbmdb#ccf-ssficw83.asp")conn.open connstr%>换上<%dim conn,connstrset conn=server.CreateObject("adodb.connection")connstr="connstr="driver={Microsoft access driver (*.mdb)};dbq="server.MapPath("data\shopddmdbmdb#ccf-ssficw83.asp")conn.open connstr%>也不行.怎么??Str = Server.MapPath("db")Str=数据库路径 数据库名Set conn = Server.CreateObject("adodb.connection")conn.Open "provider=Microsoft.jet.oledb.4.0;Data Source=" & StrSub openrs(rs, sql,i,j) Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sql, conn,i,jEnd Sub调用数据库sql=""openrs(rs,sql,3,3)up
标签: