I'm using MS Excel 2003 and MS SQL 2000.
I needed to do a LOT of data entry, so I exported a SQL table from my database into Excel. I deleted the existing data and created the additional data I need.
When I import the data (and select Append), I get an error that the primary key is duplicated on the LAST ROW (it said row 285 and my spreadsheet had 286 rows--I assume SQL started with 0). If I delete the last two lines, it gives me the same error for line 283.
I think it's trying to import a blank row after my data. Is there any type of END command something I can do the Excel document so it knows to stop after the last row of real data?
I needed to do a LOT of data entry, so I exported a SQL table from my database into Excel. I deleted the existing data and created the additional data I need.
When I import the data (and select Append), I get an error that the primary key is duplicated on the LAST ROW (it said row 285 and my spreadsheet had 286 rows--I assume SQL started with 0). If I delete the last two lines, it gives me the same error for line 283.
I think it's trying to import a blank row after my data. Is there any type of END command something I can do the Excel document so it knows to stop after the last row of real data?