[Microsoft] [ODBC SQL Server Driver] Invalid Descriptor Index Problem Solution When JSP is read, you must read in the order of the column names in the table, otherwise an error will occur.
When you take the data, you should follow the order of the database, such as the database, VARCHAR ID VARCHAR NAME VARCHAR ADDRESS
When you take it, you must take the following order: rs.getstring ("id") Rs.getstring ("name") Rs.getstring ("address") rebound String S1 = rs.getstring ("id"); string S2 = rs.getstring ("name"); String S3 = rs.getstring ("address"); then use S1, S2, S3 in casual order!