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.

Students Click Here

Pervasive Connection Error

Pervasive Connection Error

Pervasive Connection Error

We are connecting to a Pervasive 2000i DB from a .Net application on a machine having the client installed. After the application runs for some time, it starts throwing up the following error. After that the application sometimes starts working automatically after a few requests and in some other cases the application needs to be restarted.

Type : System.Data.Odbc.OdbcException
            Message : ERROR [08S01] [Pervasive][ODBC Client Interface][Client LNA]Connection attempt timed out.  The SQL Connection Manager may be inactive or using a different transport protocol from the client.
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).

RE: Pervasive Connection Error

Is there anything in the PVSW.LOG on the client or server?  
It sounds like there might be a network configuration error that prevents the client from connecting and communicating with the server.

Certified Pervasive Developer
Certified Pervasive Technician

RE: Pervasive Connection Error

This problem happens not only from the client. We have applications running on the machine where the server is installed and they also throw up this error. I checked the PVSW.log for the server and there was no entry corresponding to the time when the server application was logging these errors.

RE: Pervasive Connection Error

If you're getting the error at the server as well as the client, it could be a firewall issue.  Make sure that ports 3351 and 1583 are open on the client and server.  
Also, are there any entries in the PVSW.LOG?  There may be entries from earlier that cause the problem later rather than immediately.

Off topic, you might consider upgrading to PSQL v9 or, ideally, v10.  PSQL 2000i is fairly old and there have been 2 or 3 major releases.  I don't know if it would solve this problem but would get you a product that is actually tested when connecting from .NET.  

Certified Pervasive Developer
Certified Pervasive Technician

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! Already a Member? Login

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