J
John Carnahan
I have a problem writing the text from a multi-line textbox to the Sql
Server db.
If the user sends a vbcrlf (enter key) in the middle of the entered text,
the text gets
truncated at the vbcrlf when writting the data to the database. The text
could get rather long.
The dataset has all of the text (including the vbcrlf), but the resulting
table field in the database only ends up with the portion of text before the
vbcrlf.
I'm use a sql dataadapter with a parameter for the insert and update
commands
SqlParameter("@Plan2", System.Data.SqlDbType.NVarChar, 1000, "Plan2"))
and the table is nvarchar(1000). The typed dataset xml shows as a string.
<xs:element name="Plan2" type="xs:string" minOccurs="0" />
Do I need to strip out the Vbcrlf from the datset field before issuing the
update? or is there something else I could do?
I'm sure the users will hit the Enter Key in the textbox, so what ever I do
needs to be behind the scenes.
Thanks,
John
Server db.
If the user sends a vbcrlf (enter key) in the middle of the entered text,
the text gets
truncated at the vbcrlf when writting the data to the database. The text
could get rather long.
The dataset has all of the text (including the vbcrlf), but the resulting
table field in the database only ends up with the portion of text before the
vbcrlf.
I'm use a sql dataadapter with a parameter for the insert and update
commands
SqlParameter("@Plan2", System.Data.SqlDbType.NVarChar, 1000, "Plan2"))
and the table is nvarchar(1000). The typed dataset xml shows as a string.
<xs:element name="Plan2" type="xs:string" minOccurs="0" />
Do I need to strip out the Vbcrlf from the datset field before issuing the
update? or is there something else I could do?
I'm sure the users will hit the Enter Key in the textbox, so what ever I do
needs to be behind the scenes.
Thanks,
John