Hi,
I have defined a Pervasive.SQL 2000i as a Linked Server to a SQL Server 7.0 Database.
I have used the following Linked Server definition:
Provider Name: Microsoft OLE DB Provider for ODBC Drivers
Linked Server: <my linked server, e.g. LINKED_SAMPLE>
Product name: Pervasive.SQL 2000i
Data Source: <ODBC DSN, e.g. SAMPLE_DB>
Location: <server location, e.g. SERVER01>
Note: I am using Microsoft OLE DB Provider for ODBC Drivers instead of PervasiveOLEDB. Because as advised by Mirtheil, that PervasiveOLEDB (in Pervasive.SQL 2000i) does not work with Linked Server, and he's right

. See my other post
Pervasive DB as Linked Server to SQL Server
The above settings is fine because I can see all the tables in SAMPLE_DB. But when I try to do a SELECT through Query Analyzer, e.g.
Code:
SELECT * FROM [LINKED_SAMPLE].[CATALOG_NAME]..[Table 01]
I get the following error code:
Code:
Server: Msg 7347, Level 16, State 1, Line 1
OLE DB provider 'MSDASQL' returned an unexpected data length for the fixed-length column '[LINKED_SAMPLE].[CATALOG_NAME]..[Table 01].Col01'. The expected data length is 4, while the returned data length is 0.
I think, [Table 01] is corrupted. But, I can perform an Export through SQL Enterprise Manager or Pervasive Control Center with no problem. Is there a way to correct this problem so that I can query the table through Linked Server?
_msd_