• Post Reply Bookmark Topic Watch Topic
  • New Topic

Size for Prepared Statement setString()

 
Dhananjay Ghanwat
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to insert a string of length 3000 characters using prepSt.setString(). The length of the field in database is 4000 varchar (using SQL Server as Database) . but the string gets truncated to only 256 characters. it throws no exception but when i fire a SELECT qry from back end i get only 256 chars
Any solution for this problem.
thanx
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!