473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

(0x80004005) Unspecified error

Hi all,
I set up a simple access database.Earlier my ASP page was working fine,but dont know whats gone wrong that it started to give me this Err:
Error Type:
Provider (0x80004005)
Unspecified error
/imagine/TestJobShow.asp, line 38(This line is "objDbConn.Open")

But more problmatic is, sometime it works and sometime not.
Plz anybody can help me in this. Ive seen this probs with other people also but their requirement and codes were different. I want to know is there any probs with my codes.
Expand|Select|Wrap|Line Numbers
  1. <form name="data" action="" method="post">
  2. <input type="hidden" name="query">
  3. <A HREF="TestJobShow.asp?query=title" class="navig">Job Title</A> | 
  4. <A HREF="TestJobShow.asp?query=team" class="navig">Team</A> | 
  5. <A HREF="TestJobShow.asp?query=area" class="navig">Area Of Interest</A>
  6.  
  7. <%
  8. Dim objDbConn
  9.     Set objDbConn = Server.CreateObject("ADODB.Connection")
  10.     objDbConn.ConnectionString = "Driver={Microsoft Access Driver (*.mdb)};" & _
  11.     "DBQ=F:\Imagineer\html\career.mdb"
  12.     objDbConn.Open
  13. %>
  14.  
  15. <%
  16. Dim strSQL, objRS
  17. Select Case Request.querystring("query")
  18.  
  19.             Case "title"
  20.                 strSQL = "SELECT JobTitle.Job_Ref, JobTitle.Job_Title, " & _
  21.         "JobRole.Job_Role, Team.Team_Name, AreaOfInterest.Area_Name " & _
  22.         "FROM ((AreaOfInterest INNER JOIN JobRole ON " & _
  23.         "AreaOfInterest.Area_Id = JobRole.Area_Id) INNER JOIN JobTitle " & _
  24.         "ON JobRole.Role_Id = JobTitle.Role_Id) INNER JOIN Team ON " & _
  25.         "(Team.Team_Id = JobRole.Team_Id) AND " & _
  26.         "(AreaOfInterest.Area_Id = Team.Area_Id) ORDER BY JobTitle.Job_Title"
  27.  
  28.             Case "team"
  29.                 strSQL = "SELECT JobTitle.Job_Ref, JobTitle.Job_Title, " & _
  30.         "JobRole.Job_Role, Team.Team_Name, AreaOfInterest.Area_Name " & _
  31.         "FROM ((AreaOfInterest INNER JOIN JobRole ON " & _
  32.         "AreaOfInterest.Area_Id = JobRole.Area_Id) INNER JOIN JobTitle " & _
  33.         "ON JobRole.Role_Id = JobTitle.Role_Id) INNER JOIN Team ON " & _
  34.         "(Team.Team_Id = JobRole.Team_Id) AND " & _
  35.         "(AreaOfInterest.Area_Id = Team.Area_Id) ORDER BY Team.Team_Name"
  36.  
  37.             Case "area"
  38.                 strSQL = "SELECT JobTitle.Job_Ref, JobTitle.Job_Title, " & _
  39.         "JobRole.Job_Role, Team.Team_Name, AreaOfInterest.Area_Name " & _
  40.         "FROM ((AreaOfInterest INNER JOIN JobRole ON " & _
  41.         "AreaOfInterest.Area_Id = JobRole.Area_Id) INNER JOIN JobTitle " & _
  42.         "ON JobRole.Role_Id = JobTitle.Role_Id) INNER JOIN Team ON " & _
  43.         "(Team.Team_Id = JobRole.Team_Id) AND " & _
  44.         "(AreaOfInterest.Area_Id = Team.Area_Id) ORDER BY AreaOfInterest.Area_Name"
  45.  
  46.         End Select
  47.  
  48. Set objRS = Server.CreateObject("ADODB.Recordset")
  49. objRS.open strSQL, objDbConn, adOpenForwardOnly, adLockReadOnly, adCmdText
  50. %>
  51.  
  52. <%
  53. Do While Not objRS.EOF
  54. Response.write objRS.Fields("Job_Ref")
  55. objRS.MoveNext
  56. Loop
  57.  
  58. objRS.Close
  59. Set objRS = Nothing
  60. %>
  61.  
  62. </form>
Jul 23 '07 #1
2 2151
jhardman
3,406 Expert 2GB
Javed,

Is there any chance the db is open by someone else (or by you in another application/window)?

By the way, you have a really weird name. :-P

Jared
Jul 23 '07 #2
Check out this Article...

Look here

Christopher Pond
Innovative Web Solutions
Jul 24 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: rOadhOg | last post by:
Help please! I set up a simple access 2000 database and I'm running IIS5. The first time I try it, it works, then it seems like I have to wait for some kind of time out for it to work again,...
4
by: Jo Winchester | last post by:
We are getting the following error message when trying to access an .asp page in IIS 5 on a Windows 2000 server. I have found that (0x80004005) is a fairly common error, but usually it is...
5
by: khan | last post by:
Error Type: CreateRecordset (0x80004005) Unspecified error /finalsite/SearchResults.asp, line 47 this is my code can any one help plz why I am getting ths error <html> <head>
2
by: Shihao Png via DotNetMonster.com | last post by:
Well, the problem I'am having now applies to web applications only. Therefore, I believe it has something to do with security settings. Here's the code: ...
7
by: Jim McGivney | last post by:
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to connect to Microsoft Access database. The page loads, but when connection to the database is attempted to fill a datagrid the...
0
by: Petemo94 | last post by:
Folks, I am getting a "sporadic" exception that contains the following stack trace. I say sporadic b/c my DB connection usually works fine, but occasionally it fails. *** I also noted that...
0
by: mamin | last post by:
Hi! While running my asp application under Windows 2000 the following error appears: Microsoft JET Database Engine (0x80004005) Unspecified error I've installed MS Jet 4.0 SP1 and MDAC 2.8 SP1...
0
by: Yelena Varshal | last post by:
Hello, I am using ODBC to access Microsoft Access database. I use just generic ADO code. I don't have problems opening multiple connections from the same page on the development server but the...
2
by: kanman | last post by:
hi all. im developing a web based application using asp.net i'm getting this error below: and idea on where the problem is and how to fix? thank you in advance Kanman
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.