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?
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