SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


BCP Error : A valid table name is required for in, out, or format options.


BCP Error : A valid table name is required for in, out, or format options.

Author
Message
Samit Shah
Samit Shah
SSC-Enthusiastic
SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)

Group: General Forum Members
Points: 160 Visits: 153
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
patrickmcginnis59 10839
patrickmcginnis59 10839
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10362 Visits: 6858
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


to properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
Subramaniam Chandrasekar
Subramaniam Chandrasekar
SSC Eights!
SSC Eights! (937 reputation)SSC Eights! (937 reputation)SSC Eights! (937 reputation)SSC Eights! (937 reputation)SSC Eights! (937 reputation)SSC Eights! (937 reputation)SSC Eights! (937 reputation)SSC Eights! (937 reputation)

Group: General Forum Members
Points: 937 Visits: 363
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

Could you please check for any missing brackets? Otherwise if you could provide me your syntax we can look to correct

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search