L
languy
Hi there
I'm having a problem when using the SqlDataAdapter. When calling the
Update(DataSet, string) method I get the following error message "String or
binary data would be truncated". The rows neither have data that exceeds
8000 chars nor contain any LOB fields. Furthermore the data is transferred
between two tables that are bitwise identical.
-- snip --
System.Data.SqlClient.SqlCommand command =
this.xxxConnection.CreateCommand();
command.Transaction=this.xxxTransaction;
SqlDataAdapter adapter = (System.Data.SqlClient.SqlDataAdapter)
this.xxxAdapters[adaptertablename];
adapter.Update(ds, dbtablename);
-- snip --
The snip above illustrates how I'm using the SqlDataAdapter, where the
"xxxAdapters" is a Hashtable containing each SqlDataAdapter that is indexed
by the name of the table that each adapter represents.
I hope for a soon reply on this.
Thanks in regards
Jess
I'm having a problem when using the SqlDataAdapter. When calling the
Update(DataSet, string) method I get the following error message "String or
binary data would be truncated". The rows neither have data that exceeds
8000 chars nor contain any LOB fields. Furthermore the data is transferred
between two tables that are bitwise identical.
-- snip --
System.Data.SqlClient.SqlCommand command =
this.xxxConnection.CreateCommand();
command.Transaction=this.xxxTransaction;
SqlDataAdapter adapter = (System.Data.SqlClient.SqlDataAdapter)
this.xxxAdapters[adaptertablename];
adapter.Update(ds, dbtablename);
-- snip --
The snip above illustrates how I'm using the SqlDataAdapter, where the
"xxxAdapters" is a Hashtable containing each SqlDataAdapter that is indexed
by the name of the table that each adapter represents.
I hope for a soon reply on this.
Thanks in regards
Jess