[UPDATE: MS SQL Server 2005]
Hi is it possible to select a bunch of values, and then assign a column in the select statement as the primary key?
SELECT ID FROM HQ AS PRIMARYKEY -- this is wrong SELECT Names FROM Stores SELECT PRODUCTNAME FROM PRODUCTS
I ask this because I want to take advantage of the DataRow find method in .net, thank you.
After populating your dataset, you have to specify the primary key with the DataTable object, not in your sql query.
Then you can use the Find() method