Hi
Thnxs for repying The main problem which i m getting is "could not initialize the collection ".I do not have any column in table which is long .
Hope u can throw light on this problem.
sethrohit1977 wrote:
I am not well versed with SQL-Server but the nested SQLException in your trace is something like this
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
and this is what I found while looking for details
This exception is usually thrown when retrieving a LONGVARCHAR or LONGVARBINARY column using the getXXXStream() method (column size > DefMaxFieldSize of idss.ini). This exception can be avoided by re-ordering your SELECT statement so that the long column is place at the end of the select list.
In the two examples below, assume that picture is the only LONGVARBINARY type column. Then the first SELECT statement can cause this exception, while the second one works fine:
SELECT name, picture, address FROM employee
SELECT name, address, picture FROM employee
If there are two or more long columns in the same select list, place all of them at the end of the select list and make sure that your JDBC program retrieve them in the same order as they appear in the select list.
Hope that gives you some pointer to resolve the issue.