Hi all, .NET/MSSQL Server Question:
I use a System.Data.SqlClient.SqlDataAdapter to connect to a database and read (.Fill) a datatable from a view in the database (select * from v_coolview). The problem is that the view consists of multiple tables (of course) and the resulting DataTable has typically a primary key set (Datatable.PrimaryKey) that consists of the wrong column(s).
As the automatic behaviour/algorithms can not just guess the correct PK for the results of a view, i want to specify it.
How can i do this?