About 2,510,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 …

    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 are relative to …

  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. 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 server, …

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

  6. Can I specify an input sql file with bcp? - Stack Overflow

    May 13, 2012 · Input SQL file? No. You can specify a data file and a format file. If you want to use SQL, perhaps bulk insert is a better choice.

  7. .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 this library. I …

  8. Where Is Microsoft Command Line Utilities 16? - Stack Overflow

    Mar 9, 2023 · Microsoft are updating v15 as initially shipped with 2019 (SQL v15) Initially, not all 2022 features were available, but all the old ones seem to work. Microsoft released an update including …

  9. Does bcp utility support Token based Authentication? If yes, I would ...

    Mar 25, 2024 · I am able to retrieve the access token, but I would like to know how to use this token to login to the DB and run the bcp command successfully. Note: Using Managed Identity …

  10. Installing BCP without installing SQL Server in client machine?

    Feb 3, 2015 · I export data from database using the BCP utility, I want to install bcp in client machine. I don't want to install SQL Server 2008 in client machine. Is their any minimal installers available to