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

    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 …

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

    The file does not exist. (make sure the file is where you expect it to be) The file is already open by some other app. (close the other app to release the file) For 1) and 2) - remember that paths …

  3. t sql - Exporting all tables into files from SQL Server database …

    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 …

  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. sql - Unable to open BCP host data-file - Stack Overflow

    Below is an example of the BCP Statement. I'm not accustomed to using BCP so your help and candor is greatly appreciated I am using it with a format file as well. If I execute from CMD …

  6. 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? …

  7. How to write using BCP to a remote SQL Server? - Stack Overflow

    Mar 9, 2017 · This option is required when a bcp command is run from a remote computer on the network or a local named instance. To connect to the default instance of SQL Server on a …

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

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

  9. .net - How do I find BCP on a SQL Server? - Stack Overflow

    Jun 17, 2011 · These are also running on various versions of Windows server 2000-2008. I need to be able to locate the Sql Server version of BCP to be called from within the C#.NET code in …

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

    Jun 19, 2012 · Therefore (and especially if calling from SQL Server connection rather than client), I think it makes a lot more sense to have a stored procedure or function, which will return …