G
Guest
Hi
How can I add a Primary Key field to a Excel Worksheet? Or let me ask it in this way: How can I set a column in a Excel Worksheet as Primary Key
I am trying to query a Excel Workbook from inside a .NET application with Sql statements, which works fine, and as I'm trying to dynamicaly generate Insert, Update and Delete commands (which .NET generates automaticaly, great) I receive the error that it can not generate commands on tables with no "Primary Key" field. Even though I have a field called ID with unique numbers, I don't know how to set that column as "Primary Key" so that my error will not occure any more
Is it then possible to set a column as Primary Key in Excel? Or shall I set it somehow in my Sql Select statement
Thanks
Navid
How can I add a Primary Key field to a Excel Worksheet? Or let me ask it in this way: How can I set a column in a Excel Worksheet as Primary Key
I am trying to query a Excel Workbook from inside a .NET application with Sql statements, which works fine, and as I'm trying to dynamicaly generate Insert, Update and Delete commands (which .NET generates automaticaly, great) I receive the error that it can not generate commands on tables with no "Primary Key" field. Even though I have a field called ID with unique numbers, I don't know how to set that column as "Primary Key" so that my error will not occure any more
Is it then possible to set a column as Primary Key in Excel? Or shall I set it somehow in my Sql Select statement
Thanks
Navid