I am finally working with using OSQL and came across a problem I can't solve. The query runs fine and returns what I expect it to do. However, I am having it output the results to a .txt file and that's where the problem is. I'm having problems with formatting the output.
My results look like this (the data is different, but the format is the same):
What I want is:
I've tried using the -w switch (-w 30, -w 40, -w 80) but none of those changed anything.
How do I get the results in the format I need?
-SQLBill
Posting advice: FAQ481-4875
My results look like this (the data is different, but the format is the same):
Date&Time
LastName
FirstName
-------------
--------------
--------------
2006-03-31 04:00
Smith
Tom
2006-03-31 04:31
Doe,
Jane
What I want is:
Date&Time LastName FirstName
--------- -------- ---------
2006-03-31 04:00 Smith Tom
2006-03-31 04:31 Doe Jane
I've tried using the -w switch (-w 30, -w 40, -w 80) but none of those changed anything.
How do I get the results in the format I need?
-SQLBill
Posting advice: FAQ481-4875