When I issue this command (It looks silly but it works):
BCP "declare @colnames varchar(max); select @colnames=coalesce (@colnames+char(9), '')
+ Column_Name from db.information_Schema.columns where table_name='table1' order by
ordinal_position; select @colnames"
queryout Table1_Columns.tsv -S?? -U?? -P?? -f** -e**
I get this error:
[Microsoft][SQL Native Client]Host-file columns may be skipped only when copying into the Server
The format file is:
9.0
1
1 SQLCHAR 0 100 "\r\n" 1 Column_Names SQL_Latin1_General_CP1_CI_AS
Can someone tell me why I am getting this error?