I am running a 2003 server, running iis6 and having difficulty with opening ASP pages that connect to either an sql database or Access via odbc. I have browsed the forum and have performed the following tasks
1) Made sure iusr had permissions to the db folder
2) Set execute scripts and executibles
3) Checked and validated system dsn's
4) Made sure all passwords were in sync
I get the following error when running this code
<%@ Language=VBScript %>
<%
option explicit
Dim conOP, rsOP, rsOP1,
Dim StartDate, EndDate, stopDate, wrongDate, enddate1
Dim sqlOP,
Dim Totall, Totallper, Unitotdop, PartTotop, UnitTotop, StartDateop, EndDateop, LtdPartop, LtdUnitop, Partotdop
Dim norec
Dim dataOPAvail
'--------------CREATE DATA CONNECTION AND RECORDSET OBJECTS
Set conOP = Server.CreateObject("ADODB.Connection")
Set rsOP = Server.CreateObject("ADODB.Recordset")
'------------SET UP SQL QUERY
sqlOP = "SELECT Parts1, Units1 FROM OTD"
'------------OPEN UP DATABASE AND RUN QUERY
conOP.open "dsn=Dashboard","sa","sa"
error '8007007f'
/index.asp, line 73
Line 73 being the conOp.open.
This is happening with any asp page accessing either an sql db or an access db on the 2003 server.
I copied the wwroot directory from an NT server running iis4
Any help would be greatly appreciated.
1) Made sure iusr had permissions to the db folder
2) Set execute scripts and executibles
3) Checked and validated system dsn's
4) Made sure all passwords were in sync
I get the following error when running this code
<%@ Language=VBScript %>
<%
option explicit
Dim conOP, rsOP, rsOP1,
Dim StartDate, EndDate, stopDate, wrongDate, enddate1
Dim sqlOP,
Dim Totall, Totallper, Unitotdop, PartTotop, UnitTotop, StartDateop, EndDateop, LtdPartop, LtdUnitop, Partotdop
Dim norec
Dim dataOPAvail
'--------------CREATE DATA CONNECTION AND RECORDSET OBJECTS
Set conOP = Server.CreateObject("ADODB.Connection")
Set rsOP = Server.CreateObject("ADODB.Recordset")
'------------SET UP SQL QUERY
sqlOP = "SELECT Parts1, Units1 FROM OTD"
'------------OPEN UP DATABASE AND RUN QUERY
conOP.open "dsn=Dashboard","sa","sa"
error '8007007f'
/index.asp, line 73
Line 73 being the conOp.open.
This is happening with any asp page accessing either an sql db or an access db on the 2003 server.
I copied the wwroot directory from an NT server running iis4
Any help would be greatly appreciated.