Why am I getting the error "A valid table name is required for input, output, or formatting" with BCP?

I want to import a table keeping the identity column.

In cmd, I enter:

bcp database.edg.Hello in C:\Users\Tech\Downloads\p.csv -c -E 
       -S 349024ijfpok.windows.net\MSSQLSERVER -T

      

Which returns:

The in, out or format parameters require a valid table name

Is this a syntax problem?

+3


source to share


1 answer


You need parentheses for database information. I usually use a colon "

for the path just to be sure. Full command:



bcp [database].[edg].[Hello] in "C:\Users\Tech\Downloads\p.csv" -c -E -S 349024ijfpok.windows.net\MSSQLSERVER -T

      

+3


source







All Articles