About 145,000 results
Open links in new tab
  1. Generate sql insert script from excel worksheet - Stack Overflow

    May 29, 2013 · if you dont specify the IDENTITY values in the excel sheet; you can change and re-run the edit top 200 rows sql script by removing IDENTITY column. So when you copy and paste the values without IDENTITY; this method will work.

  2. How do I convert Excel data into a SQL insert? - Stack Overflow

    Jan 31, 2017 · Now, some caveats. In order to import from an Excel file you need the Microsoft.ACE.OLEDB driver installed. I've also had issues with data type translations and other such things from Excel. When I need to do an Excel import I will usually convert it to a CSV as that is much simpler. It's as easy as saving the document as a CSV in the Excel ...

  3. Import Excel Spreadsheet Data to an EXISTING sql table?

    Apr 18, 2015 · You can copy-paste data from en excel-sheet to an SQL-table by doing so: Select the data in Excel and press Ctrl + C; In SQL Server Management Studio right click the table and choose Edit Top 200 Rows; Scroll to the bottom and select the entire empty row by clicking on the row header; Paste the data by pressing Ctrl + V

  4. SQL Server export to Excel with OPENROWSET - Stack Overflow

    insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\template.xls;', 'SELECT * FROM [SheetName$]') select * from myTable Is there any standard way to use this template specifying a new name for the excel sheet so that the template never gets written to or do I have to come up with some work-around?

  5. Tricks for generating SQL statements in Excel - Stack Overflow

    May 27, 2015 · Sometimes I use substitute to replace patterns in the SQL command instead of trying to build the sql command out of concatenation. Say the data is in Columns A & B. Insert a top row. In cell C1 place the SQL command using pattern: insert into table t1 values('<<A>>', '<<B>>') Then in rows 2 place the excel formula:

  6. Inserting more than 1000 rows from Excel into SQLServer

    May 2, 2016 · Insert Rows From Excel into SQL Server. 3. Importing more than 1000 rows from Excel to SQL-server. 0. how ...

  7. Generating SQL INSERT from data in Excel file - Stack Overflow

    Jan 20, 2020 · Option 1: You should write an app to read thousands of records in excel file then loop each row in order to insert into table in SQL. Option 2: Just copy then paste into SQL if the order of your columns is correct.

  8. sql server - How to Bulk Insert from XLSX file extension ... - Stack ...

    It can be done using SQL Server Import and Export Wizard. But if you're familiar with SSIS and don't want to run the SQL Server Import and Export Wizard, create an SSIS package that uses the Excel Source and the SQL Server Destination in the data flow.

  9. Insert Data into SQL Table from an Excel Sheet

    Dec 16, 2014 · For Excel 2007-2010 (.xlsx) files, use Excel 12.0 Xml. For Excel 2007-2010 macro-enabled (.xlsm) files, use Excel 12.0 Macro. For Excel 2007-2010 non-XML binary (.xlsb) files, use Excel 12.0. The second part of the argument specifies the file’s path and file name.

  10. Transform Excel to SQL insert statement - Stack Overflow

    Sep 5, 2019 · I suggest reading up on SQL data structure/relational databases if you're unfamiliar with SQL server. Next step would be to convert the file to a CSV by using Excel save-as. Lastly, you can use the SQL import wizard for a solution with a user interface to import your data.

Refresh