Facing Problem while executing bcp with stored Procedure having parameters

  • Hi,

    I'm getting a error: BCP host file must contain atleast one column

    Below is my Code:

    bcp " exec [DatabaseName].dbo.GetBcpOutput1 'csv_test','select top 10 * from csv_test'" queryout D:\Book5.csv -S MAT-DB02\DO -T -c -t,

    Can anybody help me out?:-)

  • This is not what i meant

    i have stored procedure whose functionality is to insert the column headers as the first row and the parameters i have passed is the TableName&Query

    so i have to execute this SP using BCP

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply