BlackSnake
Anaconda
- Joined
- Aug 20, 2002
- Posts
- 9,196
I've been in this seat for nearly 12 hours and I still haven't solved this freakin problem.
Are there any jave gurus on board?
I got this freakin error: java.sql.SQLException: Invalid column index
The kicker is, there is no data. I wrote:
rs = stmt.executeQuery(strSQL);
if (rs != null)
{
rs.next();
intEmpl = rs.getInt(1);
strEmplName = rs.getString(2);
strEmplNet = rs.getString(3);
}
Why is the stupid thing reading inside the "if" statement? There is no data. The strSQL that is being executed bring back nothing. I made sure that it would bring back nothing and tested that it would not.
I'm going to a bar before going home. If anyone has an idea, I'll be back later. Thanks,
Are there any jave gurus on board?
I got this freakin error: java.sql.SQLException: Invalid column index
The kicker is, there is no data. I wrote:
rs = stmt.executeQuery(strSQL);
if (rs != null)
{
rs.next();
intEmpl = rs.getInt(1);
strEmplName = rs.getString(2);
strEmplNet = rs.getString(3);
}
Why is the stupid thing reading inside the "if" statement? There is no data. The strSQL that is being executed bring back nothing. I made sure that it would bring back nothing and tested that it would not.
I'm going to a bar before going home. If anyone has an idea, I'll be back later. Thanks,