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 > Pervasive - SQL Server (Linked Server)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-05, 15:19
ddemchuk ddemchuk is offline
Registered User
 
Join Date: Oct 2005
Posts: 1
Exclamation Pervasive - SQL Server (Linked Server)

I've created and ODBC Connection to an old BTreive database using the "Pervasive ODBC Engine Interface" driver. I purchased the Pervasive Workgroup Engine to connect.

Thereafter I create a Linked Server in SQL Server using the following information (this was mostly guess work, but the tables do get listed after the connection) ;

Product Name: Pervasive ODBC Client Interface
Data Source: <DSN Created as mentioned above>
Provider String: MSDASQL
Location: <blank>
Catalog: <blank>

When I run the query below:
select * from openquery(<LINKED_SERVER_NAME>, 'select * from <TABLENAME>')

I get this error:
OLE DB provider 'MSDASQL' reported an error. The provider did not give any information about the error.
OLE DB error trace [OLE/DB Provider 'MSDASQL' ICommandPrepare::Prepare returned 0x80004005: The provider did not give any information about the error.].

Can anyone provide any insight as to why OR tell me if there's a better way to link to these tables.

Thanks!!
Reply With Quote
  #2 (permalink)  
Old 10-09-05, 23:52
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
First, what error are you seeing if you use the Pervasive Control Center to access the table?
Second, are the SQL Server and Pervasive.SQL on the same 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