|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Im new to these boards and I was just reading the posting rules so I hope Ive done this ok...
All Im after is a simple explanation as to what this ASP error message means? ADODB.Connection.1 error '800a0bb9'. The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another. All help is greatly appreciated.. **halo_seven** |
|
#2
|
||||
|
||||
|
It means that your connection/opening settings to the database may contain an error.
Show us that bit of your code and we should be able to suss out the problem. |
|
#3
|
|||
|
|||
|
Im not really up on this so I hope I've given u the right code, or at least enough of it..
PHP Code:
Ive had this code work with a different server. The database file is in the same folder, and according to the help from the webhost, I dont need a special folder or anything for ASP. Thanks again. |
|
#4
|
||||
|
||||
|
That part looks ok. I think the error is occurring once you try to do something w/ the recordset. Post that code - the bit where you set and open the recordset.
|
|
#5
|
|||
|
|||
|
Sorry to post so much code... Its a bit confusing with the colours as well... but I used a script that had descriptions of what each line was...
Anyway, I hope u can help PHP Code:
|
|
#6
|
|||
|
|||
|
It looks okay to me, but I would try it without the "CursorType" and without the "LockType". You don't need to lock the data since you're not updating it--you're selecting and you don't need a dynamic cursor since all web content is stateless.
|
|
#7
|
|||
|
|||
|
The asp code is actually supposed to update a database so i think those lines are supposed to stay there, but my knowledge on this is extremely limited so i took it out anyway to see what would happen and I still recieved the same error message.
I would add the rest of the code here for you to see but I dont think its necessary since the error is happening right up the top. Its a very simple feedback form script. And I am also receiving the same error for a login script I had. Both of these worked on a different server. Thanks for your help guys, really appreciate it. Any more ideas... chuck em this way... my client is getting a tad impatient.. ![]() |
|
#8
|
|||
|
|||
|
According to ASPFAQ, the error message is because you're using vbfriendly scripts and they suggest including adovbs.inc. But you are setting them as constants, so I can't think that is the problem.
http://www.aspfaq.com/show.asp?id=2102 Whenever I have a error message that I can't figure out, I type it in their search engine and *usually* I get some good insight (not in this case, it would seem!) What if you were to comment out your lock types and instead have rsAddComments.Open strSQL, adoCon, 2, 3 What engine do you have installed? If you have a 4.0 Jet engine then you could try using this connection string instead of an ODBC connection. adoCon="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" adoCon=adoCon & server.mappath("feedback.mdb") & ";" |
|
#9
|
|||
|
|||
|
Ok, I just tried commenting out those lines etc as you said but that didnt seem to make a difference so Im willing to try ur next suggestion aspnewbie.
When u say 'do i have 4.0 Jet Engine', what exactly does that mean? Sorry to sound completely clueless.... but well I am Thanks again for your wonderful help everyone. |
|
#10
|
|||
|
|||
|
If I remember correctly, it's the database engine that's shipped with Access. Access 2000 uses v. 4.0.
What version of Access are you using? Is it the same on both servers? |
|
#11
|
|||
|
|||
|
im using access 2002... on the first server i uploaded my website to, it all worked fine.. and i uploaded the exact same thing to this latest server but it doesnt work..
they do support asp and all that.. |
|
#12
|
|||
|
|||
|
okay, I think Access 2002 works with 4.0 as well. So try that connection string, I listed above.
If that doesn't work try using the actual path name to the db instead of server.mappath. adoCon="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=c:/databasefolder/databasename" If that doesn't work, double check that you are properly calling your db connection object. Once I used one variable in setting up the connection (dbConn) and a different one in calling the database (dcnDB) and I got that error. If your code is identical to what you wrote above, I don't see that error though. Then double check that all of your fields in your strSQL are valid fields in your db. Instead of using rsAddComments.Open strSQL, adoCon, you could always try rsAddComments = adoConn.Execute(strSQL) Last edited by aspnewbie : February 14th, 2003 at 07:17 PM. |
|
#13
|
|||
|
|||
|
im still not having any luck... i might have to resort to one of those annoying ready-made guestbooks for the moment.
thanks for all your help anyway people! ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Database Connection error of some sort |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|