I am facing hard time in configuring the BCP command to to import data from txt file (Pipe as Field terminator)into SQL Table.
As the TAB is the default field terminator for BCP. And My source file is | (Pipe delimited file)
I tried this
BCP Work.dbo.Customer IN "\\MyMechine\Shared\Cust.txt" -T -S "SQLSERVER" -t|
Am I missing some thing here.
Please help me.
Are you getting an error or what? You haven't told us what the problem actually is. ;-)
is pronounced ree-bar and is a Modenism for R
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs