I am importing Tables from a Oracle DataBase, using a VB.NET dataAdapter. I use the “fill” command to add the imported data to a DataSet. How is it possible to define a specific column of a DataTable as PrimaryKey, after the DataTable is already filled with data?
Share
You can set the primary key of a table by:
To be able to use the primary key, you need to ensure that all values for the given column are unique.
I primarily work in C# and have a couple of Extension methods I use to “tidy” the calls I need to make, which you might want to consider translating to VB and using: