About 853,000 results
Open links in new tab
  1. Export table to file with column headers (column names) using the bcp ...

    Aug 31, 2009 · This method automatically outputs column names with your row data using BCP. The script writes one file for the column headers (read from INFORMATION_SCHEMA.COLUMNS table) …

  2. sql server - BCP error "Unable to open BCP host data-file" - Stack …

    sql-server cmd bcp edited Sep 15, 2016 at 10:36 Brian Tompsett - 汤莱恩 5,927 72 63 135

  3. sql server - Running a SQL Query using BCP - Stack Overflow

    Jun 1, 2018 · I just started learning to use SQL Server's BCP and I'm using it to query a SQL Server DB and create a .csv file. I can create the file with no problem using this command: bcp "SELECT 'ID' FR...

  4. sql - How to use BCP command to export data to excel with column ...

    Feb 3, 2017 · How to use BCP command to export data to excel with column headers using the command prompt Asked 8 years, 10 months ago Modified 2 years, 10 months ago Viewed 8k times

  5. t sql - Exporting all tables into files from SQL Server database using ...

    Jan 9, 2014 · 0 Default setting is that you can't execute bcp command from SQL server. This version works from DOS, Powershell and BAT file. I didn't find setting from BCP which would export the …

  6. SQL Server bcp parameter, native, character, Unicode native, Unicode ...

    Nov 6, 2012 · SQL Server bcp parameter, native, character, Unicode native, Unicode character, when to use each? Asked 13 years, 1 month ago Modified 2 years, 5 months ago Viewed 3k times

  7. Import File into SQL Server using BCP - Stack Overflow

    Dec 12, 2019 · BCP can also load files with native, proprietary SQL binary data. See the -N option. Text will still appear as text in the file, but non-text data types will be stored in the file as native SQL. It will …

  8. sql server - Using bcp utility to export SQL queries to a text file ...

    Jan 27, 2013 · Using bcp utility to export SQL queries to a text file Asked 13 years, 3 months ago Modified 12 years, 10 months ago Viewed 74k times

  9. sql server - Where Is Microsoft Command Line Utilities 16 ... - Stack ...

    Mar 9, 2023 · Problem Statement It seems the latest version of Microsoft's Command Line Utilities aren't at the same version that is distributed with SQL Server 2022. SQL Server 2022 delivers bcp and …

  10. sql server - T-SQL procedure - BCP - export CSV table with header ...

    Dec 7, 2022 · I have run the following query to export my SQL Server table as CSV. It is working fine. But now I want to add the column names as the first row. How is that possible? DECLARE …