| Author |
insert CLOB into MS SQL Server 2K
|
Dave Bosky
Ranch Hand
Joined: Dec 16, 2003
Posts: 72
|
|
I have a large textarea field in a form field called details. I get the textarea field value like so: String details= request.getParameter("details"); But I need to convert the string datatype to CLOB datatype so I can insert the data into a CLOB field. Can I cast this somehow? Thanks, Dave
|
 |
Natarajan Shankar
Ranch Hand
Joined: Jun 10, 2004
Posts: 53
|
|
|
For CLOB/ BLOB data-type you need to open stream of the data-typoes and write the information through the stream. As I known, direct casting is not possible through API level.
|
Best Regards<br />N.Shankar<br />SCJP, SCWCD
|
 |
Dave Bosky
Ranch Hand
Joined: Dec 16, 2003
Posts: 72
|
|
Could you provide a simple example of creating the required stream? Thanks, Dave
|
 |
 |
|
|
subject: insert CLOB into MS SQL Server 2K
|
|
|