Import data from an Excel file to SQL Server

Many ways to do it and here is one:

  1. Create a Linked Server in the SQL Server that corresponds to the excel file.
      1. The properties assigned to the Linked Server:

    image

    2. Enable adhoc distributed queries (be careful with this! It has security implications!)
    3. SELECT * INTO [Table_Name] FROM EXCELDATA…[Sheet1$]