Thanks leflon. No, I have not. I don't know how to access the command line.
leflon
Becky,
use Win+R (Windows Key + R) to open "Run" dialog. In there just enter cmd and press enter.
That should open up the command window, kind of text terminal. There you can try to enter the "sqlcmd -?" and again press enter.
That should run the sqlcmd executable and display the options for that command.
If you get that running, we can continue with the next steps. If you like.
leflon
Becky Edwards
ASKER
It looks like I need to install SQL or SSMS on my laptop. I have been accessing it through Citrix on my pc at work. Since I do not have direct access to my keyboard at work, I will need to install SQL here at home on my laptop to test your instructions.
you run SSMS through Citrix? Running it on your laptop and connecting to your work PC?
If you can install SSMS on your local laptop, it should come with sqlcmd.
You can also install sqlcmd on it's own, well with some command line utilities. Check here.
And you can connect to the target DB from your laptop too?
I still haven't found the time to check if all this formatting can't be done in SSMS directly. Sorry for that.
do you have to run the script in SQLCMD mode?
If I use sqlcmd from the command line, I would go for the parameters
-s "|" to set delimiter
-W to cut off trailing whitespaces
Haven't yet found how -W is set in SQLCMD mode.