INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Btrieve 7 with ASP

Btrieve 7 with ASP

(OP)
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.

RE: Btrieve 7 with ASP

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.
http://www.mirtheil.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close