Suppose we insert two rows with exactly same data in sql server, now i want one to be deleted, how to do that. In oracle it is possible by use of rowid, do we have any thing as such in sql server???
You would use the DELETE method which uses the Primary Key of the row to delete that row.
The only way to get a table to have two 100% identical rows is for it to have no PK. Because it has no PK, VS wont make any U/D queries for it. even if it did, it wouldnt work.. Because no data is distinct enough to uniquely identify the one row to be deleted!
I know having no primary is just a very bad DB. but i would like to know if there is any thing like rowid or of that sort in sql server