Dim findTheseVals(1) As Object
' Set the values of the keys to find.
Dim myDAgn As New SqlDataAdapter
findTheseVals(0) = pDivisionno
findTheseVals(1) = pGNe
sqlCon.Open()
Dim myDSGN As New DataSet
myDAgn.SelectCommand = New SqlCommand("SELECT * FROM Villages", sqlCon)
myDAgn.Fill(myDSGN, "Villages")
myPrimaryKey(0) = myDSGN.Tables("Villages").Columns("DivisionNo")
myPrimaryKey(1) = myDSGN.Tables("Villages").Columns("VillageSin")
myDSGN.Tables("Villages").PrimaryKey = myPrimaryKey
Dim myRow As DataRow
myRow = myDSGN.Tables("Villages").Rows.Find(findTheseVals)
If Not (myRow Is Nothing) Then
isExistsVi = True
VIid = myRow.Item("VillageID")
Else
isExistsVi = False
End If
sqlCon.Close()
pGNe - это параметр. VillageSin - это столбец, содержащий данные UNICODE. При компиляции возникает следующая ошибка: «Эти столбцы не имеют уникальных значений»
Как выполнить поиск данных Unicode из набора данных Как исправить вышеприведенное c