Top "Bcp" questions

The bulk copy program `bcp` is a command line tool that can be used to export data from Microsoft® SQL Server™ or SAP Sybase Adaptive Server Enterprise databases to a data file in a user-specified format.

Can I specify an input sql file with bcp?

How can I specify an input sql file with a long query when using bcp? I tried using the -i …

sql sql-server sql-server-2008 bcp
how to export sql data to csv using bcp

I use simple code declare @sql varchar(8000) select @sql = 'bcp ExcelAnalysis.dbo.ClearDB out c:\csv\comm.txt -c -t, …

sql-server csv bcp
How do I use BCP or Sql Server Management Studio to get BLOB data out of Sql Server?

I'm sorry if this question has been asked already, but I couldn't find it anywhere. I have a table that …

sql-server sql-server-2005 tsql blob bcp
BCP: Unable to resolve column level collations

Running this: bcp MyDb.dbo.uvwMyView out "c:\Test.txt" -SMyServer -T -c I get this error: SQLState = S1000, NativeError = 0 …

sql-server bcp
Exporting SQL Server Table to multiple part files

I need to export a fairly large SQL Server table ~100GB to a CSV file. But rather than the output …

sql sql-server database hive bcp
xp_cmdshell Native Error 208, BCP in SQL Server 2008 R2

I've been trying to work on taking the result of a large and multiply-joined SELECT statement, and email the query …

sql sql-server-2008-r2 bcp xp-cmdshell
How to import a very large csv file into an existing SQL Server table?

I have a very large csv file with ~500 columns, ~350k rows, which I am trying to import into an existing …

sql sql-server csv bulkinsert bcp
BCP/ Bulk Insert Fails (tab delimited file)

I have been trying to import data (tab delimited) into SQL server. The source data is exported from IBM Cognos. …

sql sql-server bulkinsert bcp tab-delimited
How to remove NULL char (0x00) from object within PowerShell

I have a .CSV file that I created using SQL Server's BCP command-line BULK-COPY utility to dump a bunch of …

sql-server powershell bcp
Bulk Load Files into SQL Azure?

I have an ASP.NET app that takes multimegabyte file uploads, writes them to disk, and later MSSQL 2008 loads them …

azure bulkinsert azure-sql-database bcp