G
Guest
Hi All,
I get the error:
Unhandled Exception: System.Data.SqlClient.SqlException: Cannot create a row
of size 9168 which is greater than the allowable maximum of 8060.
The statement has been terminated.
......
at ECS.DBWriter.DBWriter.DBUpdate()
I am using the following code:
this.da = new SqlDataAdapter(sql, this.cn);
this.da.FillSchema(this.ds, SchemaType.Mapped, this.dataTableName);
this.da.SelectCommand = new SqlCommand(sql, cn);
SqlCommandBuilder cb = new SqlCommandBuilder(this.da);
this.dt = this.ds.Tables[this.dataTableName];
..... insert ....
updateCount = this.da.Update(this.ds, this.dataTableName); <= crash
The code crahses here.
Because I use FillSchema, I know the length of my columns and do not insert
more data [it would fail at insert].
What could be the reasn for the error-message and how should I handle this??
My table is large enough for my data!! One of my columns was set to 4000
characters and I tried to reduce it to 3600; But the behavios remains the
same.
Thanks so far and
best regards,
Manfred Braun
Mannheim
Germany
I get the error:
Unhandled Exception: System.Data.SqlClient.SqlException: Cannot create a row
of size 9168 which is greater than the allowable maximum of 8060.
The statement has been terminated.
......
at ECS.DBWriter.DBWriter.DBUpdate()
I am using the following code:
this.da = new SqlDataAdapter(sql, this.cn);
this.da.FillSchema(this.ds, SchemaType.Mapped, this.dataTableName);
this.da.SelectCommand = new SqlCommand(sql, cn);
SqlCommandBuilder cb = new SqlCommandBuilder(this.da);
this.dt = this.ds.Tables[this.dataTableName];
..... insert ....
updateCount = this.da.Update(this.ds, this.dataTableName); <= crash
The code crahses here.
Because I use FillSchema, I know the length of my columns and do not insert
more data [it would fail at insert].
What could be the reasn for the error-message and how should I handle this??
My table is large enough for my data!! One of my columns was set to 4000
characters and I tried to reduce it to 3600; But the behavios remains the
same.
Thanks so far and
best regards,
Manfred Braun
Mannheim
Germany