I have this info from a text file (via Notepad):
FName LName age Location
....................................................
Dave Thomas 24 New York
John Stockton 24 Las Vegas
Jerry Sloan 25 Los Angeles
I got these results after running a command file where it does an automation and creates this file with the results above. I want to be able to take that information and export it to Excel. How can I do this?
I tried to use something like this in the command prompt but the EXEC command doesn't exist:
EXEC master.dbo.xp_cmdshell 'bcp [database_name.Results] out "C:\Test.xls" -c -t\t -T -SServerName'