• Samit Shah - Saturday, February 3, 2018 7:29 PM

    Hi,

    I wanted to do insert data from file into table without SSIS using select query instead of table, as I am calling udf for certain columns to do some logic in select query. But when I use BCP command, I get error of A valid table name is required for in, out, or format options. Please advise

    Really doesn't appear appropriate to use select or a udf for an import to a table from a file using bcp. To start off with, you could post your bcp command line, the table definition, and a few sample lines of data that doesn't have any private data in it.

    Think of posting here as a "tech support" service call, give folks something so that they can do the exact thing you are doing and get the exact same error. Especially with bcp as its so darn picky LOL