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 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy