maddog1971
Programmer
What I'd like to do is allow users to upload their excel spreadsheet via an asp page and then have SQL Server import that data into an existing SQL Server table. The problem that I'm running into is that I have a field within my table which is named ID and it is my primary key which is also set up as an identity field. So what happens when I try to import the data from excel I keep getting an error because of that ID field which I need because I use that within the rest of my application for viewing,editing,deleting records. At the same time that SQL Server is importing these records I'd like the capability of finding out if the record may already exist because I also have a field which isn't the primary key but shouldn't have duplicate values. If the record already exists then just update the tuple with the rest of the fields but if it doesn't exist then add the new record from the excel spreadsheet.