I am using WIN XP, IIS 5.1 and MS Access as database support. I set up the file security to include IUSR_MYNAME on the permissions list for all my web files, DB and scripts.
I set up and ODBC connection (system) and linked it to my Access database file.
I am however getting the same error when I try to load any ASP page on the line where I command the script to open the connection. Are there any local security issues I am forgetting?
Set conn= Server.Createobject("ADODB.Recordset")
Conn.Open "MyAlias"
that's where I get the error.
"Error type:
Provider(0x80004005)
Unspecified Error"
I am trying to grab some data from odbc (sage) in my asp page I have the following code
<% dim sSQL Set Conn = Server.CreateObject("ADODB.Connection") Set rst = Server.CreateObject("ADODB.RecordSet") Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open dsn="Test", "DTest", "help"
it gets an error on line 5 -Data source name not found and no default driver specified. I have a odbc dsn set up pointing to the correct drives etc and the odbc drivers installed.
Microsoft[odbc driver manager] data source name not found and no default driver specified
my code is as follows and works fine in excel . I have a user dsn set up called Sage and a system dsn called sage so don't think thats the problem
any help will be well appreciated
Dim sSQL dim conn,rst Set Conn = Server.CreateObject("ADODB.Connection") Set rst = Server.CreateObject("ADODB.RecordSet") //get error on next line Conn.Open dsn="Sage", "TestUser", "correctpassword"
I have problem on data connection to a SQL Server by Asp Statement. It's Very strange that my asp statement can connect to one remote SQL server but can't connect to other remote SQL server. The statement written like this :
Set DBLBX=Server.CreateObject("ADODB.Connection") DBLBX.Open "DSN=DBWEB;UID=opn;PWD=opn;"
It show the follows:
Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
In IIS 5, there's seem to be no ODBC loading under the log file format dropdown option. SO if i want to use ODBC enable database connection to store session data how shall i proceed? ODBC connection to store session data able to reduce data traffic on web server?
i currently have a Ms Access database stored at c:databasedb.mdb.how do i use Asp to connect to the database? how to access the database with and without using odbc.
I have an ASP page (deleteselect.asp) that is set up to query an Access database, list the records in the table, and then create a link for each record that calls on another asp page (deletepublication.asp) and deletes the record from the database using the primary key (ID) field.
I got this exact same code to work for another page to delete users from the database. I copied the code exactly to create the delete publication page but then I started getting the error (the delete user page still works, just not the deletepublication page). Basically I have 2 tables in the dB, one called "users" and one called "publications", so I just changed the code accordingly and started getting the error.
This sounds quite complicated, but basically I can't figure out why one works, and the exact same code for another page doesn't work and generates this error: Code:
I am using ADODB.Connection to access an Access DB(mdb) on my website. I switch from one webhosting company to another and not my website can not connect to my access db. I have provided the code for your review.. Where is the problem.. How can I get the code to find the (MDB) database? Also I am connecting and testing is new web site via ip... His domain name is still pointing back to the old DNS address.. Code:
I'm using ASP to connect to a simple Access DB, it works fine once but when I refresh it gives an unspecified error from the line with the driver. I've had this happen before but not this often. Here is my connection string etc...
I have an ASP script that opens an Access DB and tries to record an IP address if the user has never visited the site. However, when the script is run, I get an error saying the the DB is read-only. I checked to DB propoerties and it is notlisted as read-only, and when I run my Query on it, it does not open the recordset as a read-only connection. I can only assume that something else has the DB r the table open, but Ihave no idea where.
I am trying to peform a multiple deletion of records from a single table "Stockist"
I i keep getting the following Error and can't see where i am going wrong. Can anyone help?
Microsoft OLE DB Provider for ODBC Driverserror '80040e10' [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2. /RetailerStockProductRemove.asp, line 22
I am urgently finding a set of codes to write data into a form and the data will go to my database. However i have tried a lot of form but couldn't successfully process. Below is one of my problem...
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x9a8 Thread 0xa08 DBC 0x3041e1c Jet'.
I am using GoDaddy.com's hosting service. I am not sure if the problem is my code or their server. I use the following code as my connection to the Access Database: Code:
I really like this forum as I can usually find the answer to all my questions by searching, but I haven't been able to find a way to resolve this problem. This is my setup. We have 2 local servers. One running WinNT that handles all our internal databases in dbf formats. The other server is WinServer 2k3 and it handles all webstuff. The Win2k3 Server logs onto the WinNT Server and can see and open all the files. If I copy a file from the NT Server to the 2k3 server, I can utilize the database using the connect string:
but, I cannot connect to it directly on the other server. I believe it is a permissions issue, but if I change the Annonomus Access user to one that can access the other server, it asks for a password. I have even tried a virtual server but cannot find a connection string that will allow me to access it.
I copied it to my dev PC and setup site in Dreamweaver. I have a local site, a testing server which points to a different location and I am using IIS5.1 virtual directory for connecting.
Strange thing is, I keep getting error "Provider (0x80004005)" after some usage. Now it is on the .Open method of an ADO COMMAND. It looks like everytime I try a second .Open I get the error. for example the first access checks User/Pass and returns info. 2nd access tries to open list of all users for admin.
The database is not being locked for exclusive anywhere I can see.
The directory/database security is all setup for the IUSR account (and first connections work anyway) I would hazard it is a locking issue but not sure why.
As I said this site is suppose to be functional, loading in DWMX2004 and using a test server on my local machine however causes a problem.
I am passing 3 hidden fields to another page using the method="post" Here is the next page - <% Dim fmMemberID, fmUsername, fmPassword fmMemberID = request.Form("memberID") fmUsername = request.Form("username") fmPassword = request.Form("password") %> <% Dim dbConn set dbConn = Server.CreateObject("ADODB.Connection") dbConn.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=d:inetpubcredencia.netfpdbmembers.mdb" dbConn.Open
Dim rsMember Set rsMember = Server.CreateObject("ADODB.Recordset") rsMember.Open "SELECT * FROM Members WHERE MemberID=179", dbConn, %>
I have an asp page with a form. I want the add the values to a Microsoft Access table. The name of the table is "seminars" and the fields are "company, phone, email, etc.". How i can create a connection from asp page to the Microsoft Access database?
What is the best and most efficient connection type to connect to an access database (MDL, DSN, ODBC, OLE-DB, etc). Right now i'm using an OLE-DB connection which is the best according to one site, but I saw on another site that said DSN was the best.
var Cn = new ActiveXObject("ADODB.Connection"); var Sc = "driver={Microsoft Access Driver (*.mdb)};dbq=" + Server.MapPath("guestbook.mdb"); Cn.Open(Sc);
the following error occurs: Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Our hosting service migrated our web page from a Windows 2000 Server to Windows 2003. Our website is www.DisketteConnection.com.
I now intermittently receive error:
ADODB.Recordset error '800a0e7d' The connection cannot be used to perform this operation. It is either closed or invalid in this context.
/shopcart/shopdisplaycategories.asp, line 36
I believe line 36 is "rs.Close". I can include additional code or the code opening the file if you need it. I utilize Microsoft 97 Access Database.
The hosting service indicated the problem lies in that the current code was written for Windows 2000 server. Our original programmer is no longer with the company and I'm at a loss to determine how to address the issue.
i run asp in my standalone pc, using access2003 as the database, like this:
i hv 3 pages, 1st page, i open the database, extract data from database for display(closing the connection using "recordset.close" and "conn.close").... then i have form input for users to input some information...and post to 2nd page
2nd page, this page may load N times depending on the user input in first page...for each time loading, i hv form input for users to input the detailed information. and for 2nd to Nth loading, i will get previous page's form input information(request.form("xxx")), then insert into database ("conn.execute")and close it("conn.close")...
last page, this page get Nth loading user input information for the 2nd page, then open database, insert into database("conn.execute") and close it("conn.close")...
now the problem is like this...database can not store data correctly: it did not insert N rows into database....maybe N+1 or N+M...randomly...because same data is insert more than once, so some rows are just duplicated...it seemes that the connection just can not be closed and do insertion more than once during each time the 2nd page is loading or during the last page is loading...
can anyone help me to find out the problem? any suggestion?