If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > PsqlConnection + ServerDSN

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-05, 11:00
mathinic mathinic is offline
Registered User
 
Join Date: Dec 2005
Posts: 1
Question 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?
Reply With Quote
  #2 (permalink)  
Old 12-09-05, 14:48
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On