INVALID DESCRIPTOR INDEX ODBC SQL SERVER DRIVER

Gowtham 48 2 2 7. Developing Multithreaded Applications Slow Chat: That's the way some drivers have been written; you cannot skip any columns when reading the resulting result set, as the drivers are actually reading a stream and converting objects in the stream to objects of the JDBC types. This really fixed it for us, thought to share it with you guys. Remco 5
Uploader: Mobar
Date Added: 12 September 2016
File Size: 38.25 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 56447
Price: Free* [*Free Regsitration Required]





You may have to odnc or Login before you can post: Remco 5 The solution I have found is: Hink 1 8 I tried to list my SQL statement to: I'm afraid, some JDBC drivers will require you to read columns in order, starting at the first column.

That's the way some drivers have been written; you cannot skip any columns when reading the resulting result set, as the drivers are actually reading a stream and converting objects in the stream to objects of the JDBC types.

The time now is This way you get the full stacktrace and you can learn about the line number where this problem occurred.

'Invalid Descriptor Index’

Results 1 to 3 of 3. Gowtham 48 2 2 7. Tepken Vannkorn 96 3 3 7. Sign up using Email and Password. Results 1 to 3 of 3 Thread: I doubt the exception is thrown by one of the lines in the posted code.

Compile and run the application in debug mode. Name as abookName, soldItems. There are various ways in which this scenario can manifest:.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. Sign up using Facebook. If you need to solve it, you need to know which one of the above conditions is true in your code, and rectify accordingly.

Post Your Answer Discard By clicking "Post Your Answer", you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

The simple resolution is to either fix the query to return the needed column, or fix your code to not read the absent column.

You can find the line number in the 1st line of the stacktrace. At what line exactly is it been thrown? QuinStreet does not include all companies or all types of products available in the marketplace. So, does this help? You might be reading a column, whose index is invalid, or whose column name doesn't match any of the returned columns in the result set.

Similar Threads

Join Date Mar Posts 7. Qunt as qunt, soldItems. Shashika Fernando 66 5. Some of the products that appear on this site are from companies from which QuinStreet receives compensation. Close ; Insert a breakpoint on line 4.

Consider a table which has 5 columns:. Thanks for the code update. A SQLException with the message "Invalid descriptor index" is usually obtained when you read the result set incorrectly.

That will occur if you're trying to get the resultset variable value in the index value of 0.

Comments

Popular Posts