This is a discussion on ""unspecified error"" within the Classic ASP section. This forum, and the thread ""unspecified error" are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
"unspecified error"
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
"unspecified error"
hi guys
i have a few pages that connect to the same database if i click on one, and then another, on the second page i get an "unspecified error" - im guessing this might be because i havent closed connections or something? but i use this code at the end:
thanks |
|
|
|
#2
|
|||
|
|||
|
you have to close the connection to the database...
|
|
#3
|
||||
|
||||
|
Thanks john i'll try it as soon as i get off my mobile and onto a pc!
|
|
#4
|
|||
|
|||
|
Ben, you read this forum on your mobile? How?!?
|
|
#5
|
||||
|
||||
|
Actually, connections to the database, and objects are cleared up automatically when the page loses it's scope..... however, manual clearing up of objects and closing connections is always good practice because you release the resources when they are done with.... which could be well before the page finishes proccesing.
Many pages can access the database at the same time unless your connection string specifies an EXCLUSIVE connection, which aint gonna be the case. Seems as though you have an error prolly caused by your SQL statement or some object being used wrongly. Smokie..... I reckon he prolly has an HTML capable phone.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
||||
|
||||
|
i have a nokia 6260 - its fully html compatible
thanks guys |
|
#7
|
||||
|
||||
|
ok guys...
still getting the unspecified error! |
|
#8
|
|||
|
|||
|
Post the code. Only way we can tell. Ohh, and Rob's right... you dont really have to close the connection, just good practice. It shouldn't error if you dont though.
|
|
#9
|
||||
|
||||
|
|
#10
|
||||
|
||||
|
hey guys... anyone got any ideas? it worked for a bit, but now its gone back to not working...?
|
|
#11
|
||||
|
||||
|
Yeah.... lol
Make sure you dont have the DB open in access!!! LMAO! I bet that's it!
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#12
|
||||
|
||||
|
you get a different error if you do that rob - a temporary volatile thingy error
and i'm not that stupid! :P |
|
#13
|
||||
|
||||
|
Quote:
Have you recently updated MDAC? If so, roll back and see if you still have an issue. If you have not recently upgraded, then maybe see if you have an updates. look on microsoft for MDAC updates.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#14
|
||||
|
||||
|
whats MDAC?
|
|
#15
|
||||
|
||||
|
Microsoft Data Access Components.
They are the objects used when connecting to a database.... they include ODBC drivers and all the other gubbins needed.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#16
|
||||
|
||||
|
I know that error...
I used to get it all the time. it happens when you try to output the contents of an empty recordset. the error in your logic is that you're forgetting to check whether rs.bof is true... just change it to:
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
![]() |
| Tags |
| quotunspecified, errorquot |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a "tag" system to find relevant "related" pages | MrQuestions | PHP Forum | 3 | Mar 20th, 2008 23:06 |
| [SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. | VegaLA | Classic ASP | 3 | Jan 26th, 2008 00:12 |
| [SOLVED] Show "Image" Depends On User "Status"? | Monie | Classic ASP | 6 | Oct 16th, 2007 01:22 |
| ? IS "meta name="robots" content="?" necessary in pages ? | Love2Java | Starting Out | 6 | Aug 8th, 2007 13:48 |
| window.opener.document["nameForm"].getElementById("someid").value; doesnt work | drpompeii | JavaScript Forum | 0 | Feb 17th, 2007 23:09 |