About 1,090,000 results
Open links in new tab
  1. sql server - SSMS add comma delimiter - Stack Overflow

    Jan 23, 2014 · Here's what you need to do: Put your cursor one space after the 356 (you'll see what you need that extra space in step 2). Hold down ALT + SHIFT and click the down key for as many numbers as you have. You should see a blue line just to the right of your numbers.

  2. Easier Way to Format Excel Data For SQL query - Stack Overflow

    Jul 19, 2013 · Here are a couple of ways: Query the excel spreadsheet directly: SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=C:\excelfile.xls', [Sheet1$]) Use excel to format the data: In next empty column = A1 & "," then copy-down, or ="'"&A1&"',"

  3. How to enclose a list of values into single quotes for SQL query ...

    Mar 16, 2017 · By using Microsoft excel you can just write a formula to concatenate values from one column with single quotes and commas. Later you can use Excel's fill technique to copy it overall cell values and you are done.

  4. Utility tool for adding commas/single quotes to clipboard content

    Aug 21, 2022 · When working with SQL, I often found myself in a situation when I would copy some values (either from SQL query result or Excel column) and paste them later into IN clause of some other SQL query. Adding commas/single quotes was sometimes tedious and I decided to make a tool to do it for me.

  5. Using TEXTJOIN to Create a SQL IN Clause - yoursumbuddy

    Sep 4, 2016 · Use Excel the 2016 TEXTJOIN function for a utility to create lists for a SQL IN clause. Includes a worksheet formula and a VBA UDF.

  6. sql server - Applying Quotes Across Multiple Lines - Database ...

    Insert a new column, put a single-quote in the first cell where you want it, hover over the bottom right of the cell until the cursor becomes a solid +, then click and drag to the bottom: Repeat for the second single-quote, commas, etc. Copy all, paste into SSMS, then do a quick replace for '<tab>, <tab>',, etc. Regular expression approach

  7. Using column data from excel to use in a sql query/statement.

    Apr 11, 2012 · I have been given an excel spreadsheet that contains numerous columns of data, what I need to do is use the data from a single column (Policy Numbers) in a sql query so that I can extract which consultant deals with each policy number as this information is what I require.

  8. Create comma seperated text values for In SQL Query from excel

    Jun 14, 2014 · Solution : 1. You are provided an excel with First Name 2. Select First Name column and Right Click and Select Format Cells 3. Select Custom -> Type ‘@’, and Click on Ok 4. On click of OK , you will get comma seperated text value which you can use in In SQL Query. Remove the last comma 5.

  9. 5 Ways to Add Commas to Numbers in Microsoft Excel

    5 days ago · If you need to add commas to large sets of numbers, probably importing from an external data source, you can use Power Query to transform your data. You load the data into Power Query, apply a data transformation rule, and the commas appear where you want in …

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

    May 27, 2015 · I created a UDF that concatenates a range of cells together with several options. This will always comma separate the values, but will also optionally add single quotes and/or parenthesis as needed. So, you write the easy part of the sql statement. or.

  11. Some results have been removed