Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with

Status
Not open for further replies.

bigfoot

Programmer
May 4, 1999
1,779
US
I just set up a new server with Windows 2000 Server and IIS.

I set up the same configuration as in my NT server (ODBC), and when I try to read an access database, the page comes back with:

Error Type:
Provider (0x80004005)
Unspecified error
/arett/Arett2000/Enhancements.asp, line 21

Line 21 is this:
oRec.Open szSQL, szConn, adOpenStatic

Here's my code:
szConn = "DSN=WEBServ"
UserName=Request.Servervariables("AUTH_USER")

sSQL = "Select SERIAL, FNAME, LNAME From Users WHERE USERNAME = '" & UserName & "'"

Set oRec = Server.CreateObject("ADODB.Recordset")
oRec.Open sSQL, szConn, 3

If Not oRec.EOF then
Session("UserName") = UserName
Session("Serial") = oRec(0)
Session("FirstName") = oRec(1)
Session("LastName") = oRec(2)
Else
Session("UserName") = UserName
Session("FirstName") = ""
Session("LastName") = ""
Session("Serial") = ""
End If

oRec.Close
Set oRec = Nothing

This works ok on my NT 4 box, and I gave Everyone full permissions to the database.

Help :(

 
Have you installed all the latest data access stuff on your computer? Just head over to , download all the "critical updates" for your machine, and see if the error goes away.

with a little searching on support.microsoft.com, it seems as if this error comes from several different places, and everyone seems to think that getting the latest updates for your server should clear it up.

hope it helps :)
paul
penny1.gif
penny1.gif
 
It's a Windows 2000 Server machine. MS sez it should work out of the box. And I loaded mdac 2.6 on it too.
 
I rebooted the machine and it started working.????

This makes me worry. :(

It will not read one page but It'll read another.

This makes me REALLY worry. :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top