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

    May 29, 2013 · You can use the following excel statement: ="INSERT INTO table_name(`"&$A$1&"`,`"&$B$1&"`,`"&$C$1&"`, `"&$D$1&"`) VALUES('"&SUBSTITUTE(A2, "'", "\'")&"','"&SUBSTITUTE(B2, "'", "\'")&"','"&SUBSTITUTE(C2, "'", "\'")&"', "&D2&");"

  2. Generate SQL Insert Script From Excel Worksheet - Baeldung

    Mar 19, 2025 · Explore methods for generating SQL INSERT scripts from an Excel worksheet and best practices for ensuring a smooth execution process.

  3. SQL Queries from Excel: How to generate SQL Insert / Update queries

    Sep 22, 2008 · For inserting the excel data to your SQL table, you can create insert statements in excel file according to your columns. then just execute the statements all at once, it will insert the required data to sql server table.

  4. How to Use SQL Statements in MS Excel? - GeeksforGeeks

    Nov 1, 2023 · For executing the SQL query, type in =sql ( in a new cell, where you need the retrieved data to be displayed. Then, click on the Insert Function option, displayed to the left of the Formula Bar. On clicking the Insert Function option, a dialog box appears, which requires 2 inputs - Query and Tables.

  5. Insert Data into SQL Table from an Excel Sheet

    Dec 16, 2014 · To do this with T-SQL, you can follow this tutorial in detail and start by pulling the data into a temporary table, as shown in the following SELECT…INTO statement: 'Excel 12.0 Xml; HDR=YES; IMEX=1; Database=C:\DataFiles\ProductData.xlsx', [vProduct$]);

  6. Dynamically Build SQL Insert, Update and Delete Statements with Excel

    Jun 18, 2020 · The first thing we need to do is to create a new Business Entity. To do so, we will need to create an INSERT statement. We can get the table INSERT statement by right-clicking the required table and selecting "Script Table as" > "INSERT To" > "New Query Editor Window".

  7. Writing SQL Statements Using Excel Concatenate Function

    Think of all the different types of insert statements you write and how Excel may be able to help speed things up. Here are a couple examples of others we've used recently: =CONCATENATE("INSERT INTO study_user (study_id, user_id) VALUES (1, ",A1,"), (2,",A1,"), (3,",A1,"), (4,",A1,");")

  8. How to Use SQL in Excel: Unleashing Data Analysis Capabilities

    Feb 9, 2025 · Three Ways I Connect Excel and SQL. I use different methods depending on what I need to do: Microsoft Query – This is my go-to for simple stuff: It’s already built into Excel; Super easy to use; Perfect for basic queries; ODBC Connection – I use this when I need something more robust: Connects directly to databases; Great for regular data ...

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

    May 27, 2015 · How about querying and inserting the data from the Excel workbook to the source using ACE/Jet (a.k.a. Access) SQL? This requires an ACE/Jet which could be another Excel spreadsheet. Here's a quick example:

  10. Generating SQL Scripts from Excel - Sudhanshu Shekhar's Blog

    Apr 4, 2021 · This post will cover the details of creating insert scripts for SQL Server from the excel sheet without having to write the INSERT statements individually line by line. We will first create a table named STUDENTS in SQL Server.

  11. Some results have been removed
Refresh