Platform : V4.0, SQL Server 2008, Windows 2003.
Below code throws SqlException on FillMethod
:
"Primary Key Violation Error. Insert to the Table Failed".
Not sure why in Fill Method. Its not happening every time. Column1 and Column2 - Composite Key.
Dim ObjDAdapter As SqlDataAdapter
String selectstring = "select * from Table where Column1 = 'A' and Column2 = 'B'"
ObjDAdapter = New SqlDataAdapter(selectString, myConnection)
ObjDAdapter.Fill(Dataset)