How can I specify an input sql file with a long query when using bcp? I tried using the -i option but it keeps complaining about a command-line error with no extra information. Is this possible?
How can I specify an input sql file with a long query when using
Share
As far as I’m concerned the BCP utility only supports Transact-SQL queries directly written to the command line. Ex:
According to its reference the “-i” option:
Notice that it differs from the sqlcmd Utility “-i” option: