I am creating .fmt files with the bcp command using the template below:
bcp schema.dbo.table format nul -S servername\sqlserver-engine -f filename.fmt -c -T
This command creates a tab separated file with all the columns from the target table along with appropriate data type/length specifications.
However, in my use case, only a subset of columns will have data, so in order to complete the bulk insert a manual process is needed to eliminate the columns that will be null and renumber the items left on the .fmt file. Is there a way to create the .fmt file with a subset of columns (only what is needed) in order to eliminate this manual process?