This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index " Watch "[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index " New topic
Author

[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index

Afsheen
Greenhorn

Joined: Jun 06, 2002
Posts: 7
while getting a varchar column from getString() method i m getting this exception
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
i have tried it in every possible way but unable to get rid of this problem..pls help me out!!!
Ali Hassaan
Ranch Hand

Joined: May 16, 2001
Posts: 103
have u done result.next() for moving cursor to next row.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"aahsan",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

you'll find several people with the same problem if you search this forum for "Invalid Descriptor Index"
Jamie
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index