| Author |
No ResultSet set was produced
|
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
Hi, what can cause this exception : "java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]No ResultSet set was produced." thanks
|
Thanks,
Sherif
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
My guess is you are trying to call executeQuery with some SQL that doesn't produce a result set. Can we see your code?
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
here is my Code :
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
So you are running an update statement? This won't produce a resutls set. Try using execute instead.
|
 |
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
Originally posted by Paul Sturrock: So you are running an update statement? This won't produce a resutls set. Try using execute instead.
in this part i cant use execute because it returns boolean, what do you think?
|
 |
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
Any suggestions ?
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
i cant use execute because it returns boolean, what do you think?
Why can't you? You were not using the return type anyway, so what's the difference? (Also, why are you using a Vector to encapsulate your data? Do you need synchronized code? Why not use a custom class?) [ September 16, 2008: Message edited by: Paul Sturrock ]
|
 |
 |
|
|
subject: No ResultSet set was produced
|
|
|