aspose file tools*
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
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