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 > Connecting to Workgroup Engine

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-03, 20:44
RHAVLICK RHAVLICK is offline
Registered User
 
Join Date: Sep 2003
Posts: 17
Connecting to Workgroup Engine

Hello,

I am working with a database for a medical application called Lytec. The database they are using is a Pervasive Workgroup Engine. Does anyone know how to connect to one using ODBC or OLE?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 11-11-03, 07:52
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
What language and interface are you using? For OLEDB, I would guess that you're using ADO. THe connection string would be something like:
sConnStr = "Provider=PervasiveOLEDB;Data Source=DatabaseName"
Where the DatabaseName is the Pervasive Databasename (not the ODBC DSN name). If you're accessing remote data, you can use a UNC path or a mapped drive in the Data Source parameter. If you're using Pervasive V8, the Location parameter can also be used to specify remote data (for example, "Provider=PervasiveOLEDB;Data Source=DatabaseName;Location=ServerName").
Using ODBC, your connection string with ADO is something like:
sConnStr = "Provider=MSDAQL.1;Data Source=DSN Name"
or
sConnStr = "DSN=DSN Name"

If you need more information, please give more information on how and what you are doing including errors and versions of Pervasive you are using.
__________________
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
  #3 (permalink)  
Old 11-11-03, 11:33
RHAVLICK RHAVLICK is offline
Registered User
 
Join Date: Sep 2003
Posts: 17
Thanks for the reply. I left out one important detail. When using this Pervasive Workgroup Engine, the database that is installed by the Lytec application has no Data Source created, therefore I am thinking I need to connect directly to the folder that the database is located. We are using VB.NET and C#, so I can go either with the ODBC or the OLEDB. But again, without the data source name I am having problems connecting. Is there a way with OLEDB to connect directly to the folder that the database is in?

Thanks.
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