When you insert new records into an SQL database, you may run into issues where you accidentally overwrite records that are already present due to a duplication issue. You can use a simple alteration ...
If I have a variable rs ("ColumnA") that is an empty string "" and I want to insert it into a table as a NULL instead, isn't there a SQL function that would ...
I've had the same issue before and resorted to using a query that does the insert then returns @@identity. You can do it without a full blown stored procedure and just using an SqlCommand, IIRC.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results