Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Importing Excel into a SQL Table containing Primary Key

$
0
0

I am attempting to import an Excel sheet into a SQL table. The tables that I am trying to import into also contain a primary "Employee_ID" key. I have been testing out using SSIS in Visual studio to make a data flow and data conversion package, but I am at a loss as how to import these new records into the tables that need to be updated and also be able to assign a new "Employee_ID" to the new record. I am no expert and I don't want to attempt anything in a live environment until I have been able to test the process. In a nutshell, these are options for what I want to get accomplished:

  1. Import the Excel spreadsheet via SSIS in Visual Studio
  2. Manually Import the sheet through the Import/Export wizard in SQL
  3. Import the Excel sheet through a linked table in Access
  4. Perform the import in any of these options while also having the new record...

Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>