bcp SLADB.dbo.AlarmDetTB format nul -T -n -f ProdData-n.fmt -S localhost\DEV
works fine, thanks a lot.
My Next question is using that file is it possible to specify the format of a date time to "M/d/yyyyHH:mm:ss"
Kind of. Before I can answer that question, I have a couple of my own.
1. Will the "M" and "d" always be two digits?
2. Are you using a staging table as the BCP target (if not, I very strongly recommend that you do)?
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