Article ID 2366
Article Title ERROR: SQLState = 07009, NativeError = 0, Invalid Descriptor Index
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2366
KBase Category Connectivity
Date Created 03/18/2008
Last Edit Date 03/18/2008


Article Text
PROBLEM:
After running the 'Dump & Load for SQL Server' wizard in Database Builder and executing the DFMSSQL.BAT created by the wizard, the following error is written to TableName.log:

SQLState = 07009, NativeError = 0
Error = [Microsoft][SQL Native Client]Invalid Descriptor Index


SOLUTION:
This error can occur if the data was dumped from a Recnum table and the table was later converted to SQL Server using the 'Convert to MS SQL Server' wizard and the 'Convert Recnum table to standard table' option was selected.

A Recnum table always uses index 0 for the Recnum column. Changing this to a standard table creates the table in MS SQL Server with all other indexes in the table moved up 1 position. So, what was index 1 before now becomes index 0, etc.

Yet, the data was 'dumped' out when the table was a recnum table, assuming that the table would have the same definition and indexes when the data was read back in.


Contributed By:
Dennis Piccioni
Company: Data Access Worldwide
email: dennis@dataaccess.com
Web Site: http://www.dataaccess.com


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2024 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.