August 5, 2019 at 10:41 pm
Hello, I'm trying to import some data from a .dat plain text file to SQL using the following BCP command.
bcp dbname.dbo.tablename in DataFile.dat -f format.fmt -F2 -T -S "servername, ####" > bcp.log
After the data imports to SQL. We have a tab at the start of our data for each row in the first column of the table.
Our Datafile.Dat has a tab at the end of each line to define a new line. I have attached a sample of our format file.
Any help would be appreciated. 🙂
August 6, 2019 at 11:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply