Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    1

    Question Unanswered: PsqlConnection + ServerDSN

    I want to use PsqlConnection to connect to Pervasive database.

    For example:
    public PsqlConnection myConnection;
    myConnection = new PsqlConnection("Server=myHost;ServerDSN=DEMODATA") ;
    myConnection.Open();

    I want to access a Pervasive database from an ASP.NET application. The asp.net application and the database are not within same box (i.m. the web application and Pervasive SQL database are on different computers across the Internet.

    How do I create “ServerDSN” from the webbserver or is there any other way to connect to the database?

  2. #2
    Join Date
    Dec 2001
    Posts
    1,109
    Provided Answers: 4
    The ServerDSN is the Pervasive Engine ODBC DSN on the machine where the Pervasive engine is running.
    You won't create the "ServerDSN" on the webserver but you would create it on the Database server.
    Mirtheil Software
    Certified Pervasive Developer
    Certified Pervasive Technician
    Custom Btrieve/VB development
    http://www.mirtheil.com
    I do not answer questions by email. Please post on the forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •