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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Btrieve 7 with ASP

Status
Not open for further replies.

memo13cr

Technical User
Apr 11, 2005
8
US
Hi
I have this connection on Windows NT Server with IIS 4 It's work :
<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "DRIVER={Pervasive Software ODBC-32};DATAPATH=\\GEFUJINTC02\MACOLA75\MACOLA75\DATA;DDFPATH=\\GEFUJINTC02\MACOLA75\MACOLA75\DATA"
objConn.Open
mySQL = "Select Item_no, sum(Unit_Price)/count(Item_no) as Promedio From OELINHST_SQL Group by Item_No "
set rstemp = objConn.Execute(mySQL)
Do while not RStemp.Eof
%>



I trying install on windows 2000 pro with IIS 5, but not work.
This is the connection, is the same to Windows NT Server:
<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "DRIVER={Pervasive Software ODBC-32};DATAPATH=\\GEFUJINTC02\MACOLA75\MACOLA75\DATA;DDFPATH=\\GEFUJINTC02\MACOLA75\MACOLA75\DATA"
objConn.Open
mySQL = "Select Item_no, sum(Unit_Price)/count(Item_no) as Promedio From OELINHST_SQL Group by Item_No "
set rstemp = objConn.Execute(mySQL)
Do while not RStemp.Eof
%>


In this is the error that showme:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Pervasive Software][ODBC Interface][Pervasive Software SQL Engine]General error.
/ciweb/Aduanas/repfacturacion.asp, line 50


I don't know , what this error, i Try some ways, but i haven't connect. Please help me
Thanks.
 
Well, a "General Error" could be a number of things. Here's a few things to try:
1. By default, IIS doesn't have rights to network paths. Make sure the IIS user (by default, ISUR_machinename) has rights to the remote path.
2. Try creating a DSN on the Web Server. Does the work? If not, what error is returned in the "Login must succeed..." message?
3. Make sure you've got the latest Pervasive ODBC-32 driver installed. Older versions (of this old software) didn't support Win2000.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top