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

    Aug 31, 2009 · I have seen a number of hacks to try to get the bcp utility to export column names along with the data. If all I am doing is dumping a table to a text file what is the most …

  2. sql - How to use BCP command to export data to excel with …

    Feb 3, 2017 · bcp is a program (bcp.exe). the code you posted is if you run it from within SQL. To run it from a command prompt the command would be bcp [database_name.Results] out …

  3. 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

  4. 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 …

  5. using BCP to export stored procedure result in SQL Server 2008

    Jun 19, 2012 · The query can reference a stored procedure as long as all tables referenced inside the stored procedure exist prior to executing the bcp statement. For example, if the stored …

  6. SQL Server BCP: How to put quotes around all fields?

    SQL Server BCP: How to put quotes around all fields? Asked 15 years, 9 months ago Modified 3 years, 10 months ago Viewed 51k times

  7. SQL Server bcp parameter, native, character, Unicode native, …

    Nov 6, 2012 · SQL Server bcp parameter, native, character, Unicode native, Unicode character, when to use each? Asked 12 years, 10 months ago Modified 2 years, 2 months ago Viewed 3k …

  8. Bcp Utility with login_id and password using SQL Server

    Aug 10, 2021 · 0 I use the bulk copy program utility (bcp) bulk copies data between an instance of Microsoft SQL Server and a data file in a user-specified format, in my case TXT format. I need …

  9. sql server - Improve speed of BCP - Stack Overflow

    May 8, 2012 · I'm importing a huge amount of data using BCP, and I was curious about what options it has to improve the speed of this operation. I read about parallel loading in a couple …

  10. SQL Server BCP insert additional columns - Stack Overflow

    Mar 22, 2017 · You can BCP into a staging table and then insert from the staging table in the appropriate structure to another table. You can also use the BULK INSERT from within SQL …