How do I get around the following error I get when I fill a dataset?
Cannot sort a row of size 8430, which is greater than the allowable maximum of 8094
Line 184: Dim da2 As SqlDataAdapter = New SqlDataAdapter(command2)
Line 185: Dim ds2 As New DataSet
Line 186: da2.Fill(ds2)
I had written the following code to check for the rowsize and if it was too big to flag it so that I could skip over displaying the record so that I wouldn’t get the error, but come to find out the error happens right when the dataset is filled.
Thanks
Cannot sort a row of size 8430, which is greater than the allowable maximum of 8094
Line 184: Dim da2 As SqlDataAdapter = New SqlDataAdapter(command2)
Line 185: Dim ds2 As New DataSet
Line 186: da2.Fill(ds2)
I had written the following code to check for the rowsize and if it was too big to flag it so that I could skip over displaying the record so that I wouldn’t get the error, but come to find out the error happens right when the dataset is filled.
VB.NET:
For RowIndex = 0 To ds.Tables(0).Rows.Count - 1
For ColumnIndex = 0 To ds.Tables(0).Columns.Count - 1
RowSize += Len(ds.Tables(0).Rows(RowIndex).Item(ColumnIndex))
Next
If RowSize > 8000 Then
Session("dsAllocatedUserRecords").Tables(0).Rows (Session("currentRowIndex")).Item("SkipGrouping") = 1
End If
RowSize = 0
Next
Last edited by a moderator: