Thanks, Naomi Sergey,and Kevin
The question was provoked by another one:
I'm wondering what's the best (translate that - reliable and least work for me) way to determine whether a row in a datatable that contains an identity column was inserted by my C# program or was originally extracted from a SQL server row.
When browsing the datatable in the debugger, I see a -1 in the rows that I've created
Can I say that if it's less than 0, it was inserted by me and vice versa?
Is that logic OK? Is there a better way?
>>checked the documentation and can't find an answer to this.
Will an identify column ever have a value of zero?
I note that when I add the first record, it's 1.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.