3RD POST- IS MICROSOFT READING THESE HELP!

  • Thread starter Thread starter rlum
  • Start date Start date
R

rlum

I am trying to produce a the column that contains an
error after an sqldataadapter update. Just connect to a
sql db get a dataset, set the column to a string greater
than the field and try da.update. then catch it a
sqlexception and pass it to this ms sample code:

Private Sub GetAllErrs(ByVal myRow As DataRow)
' Declare an array variable for DataColumn objects.
Dim colArr() As DataColumn
' If the Row has errors, check use GetColumnsInError.
Dim i As Integer
If myRow.HasErrors Then
' Get the array of columns in error.
colArr = myRow.GetColumnsInError()
For i = 0 to colArr.GetUpperBound(0)
' Insert code to fix errors on each column.
Console.WriteLine(colArr(i).ColumnName)
Next i
' Clear errors after reconciling.
myRow.ClearErrors()
End If
End Sub
here is the ms link
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfsystemdatadatarowclassgetcolumnsinerrort
opic.asp

the column array is 0 with no elements! Please help and
thanks in advance
..
 
chance:

i agree. i doubt putting "IS MS LISTENING?" in the topic will help
anyone get support faster.

however ( and this is for rlum ), there is a web site for msdn customers
to register their e-mail / newsgroup alias. supposedly, once the e-mail
address is registered, ms tech support will respond to news group posts
w/ in one to two days.

jeff clausius
sourcegear corporation
 
however ( and this is for rlum ), there is a web site for msdn customers
yep and once you've done that, expect a couple of hundred Swen emails a day
forever more :o/
 
simon ([email protected]):

surely everyone knows they should be using some sort of non-sensical e-
mail address for their postings! :>}

btw, that address is the e-mail adress registered w/ microsoft.

jeff
sourcegear corporation
 
Back
Top