This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC and the fly likes JDBC & MS SQL : ps.executeBatch() function problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC & MS SQL : ps.executeBatch() function problem" Watch "JDBC & MS SQL : ps.executeBatch() function problem" New topic
Author

JDBC & MS SQL : ps.executeBatch() function problem

Kalpesh Gupta
Greenhorn

Joined: Sep 26, 2002
Posts: 1
Hello
When i run the ps.executeBatch() function against MSSql server
I get a following error :
Kindly help me out at the earliest.
com.microsoft.jdbc.base.BaseBatchUpdateException: [Microsoft][SQLServer JDBC Driver]Invalid parameter binding(s).
at com.microsoft.jdbc.base.BasePreparedStatement.executeBatchEmulation(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.executeBatch(Unknown Source)
I tried to search for it on the internet but didn't get any help.
Thanks for help in advance
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

make sure you are setting all your ? properly and that they correspond/map correctly with the database datatype.
Jamie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC & MS SQL : ps.executeBatch() function problem
 
Similar Threads
Unable to show icons in toolbar in the applet
Getting Exception as Could not find stored procedure 'sp_getNextMainGroup'
RMI Connections Dropping Please Help
NullPointerException when starting ANY Webstart-Application
Need help with this code