Uploading Excel Data into SQL Table: A Checklist

Note to my future self:

  1. In the Excel, Find/Replace “NULL” values with blanks
  2. Select all columns and convert to Text
  3. If file is less than 65,000 rows, save as .xls
  4. If replacing old SQL Table: In SQL, right-click on old table and use View Dependencies to see where table is referenced.
  5. If replacing old table, right-click on old table and use Create To to make sure data types and properties match between the old and new tables.
  6. Right click on database, under Tasks select Import Data to open Import Wizard.
  7. Select Excel File
  8. Enter Server Name, Username, Password, and Database.
  9. Copy data from table
  10. Select Source and Destination
  11. Review Data Type Mapping
  12. Complete the Wizard.
  13. Cross your fingers and hope for success.

Related:

Comparing SQL Tables with AI (and SQL)