November 4, 2013 at 5:41 am
Our users want a Dump of the SQL Data which could come by running Query and Stored Procedure every day to a text File.
They will use these text files to load the data into Excel to do a reporting.
The Text file should have the column header also.
output to \etwork1\TextFiles\Order.txt
select * from Orders where orderDate <= 11/1/2013
output to \etwork1\TextFiles\JobTran.txt
EXEC JobTransSp '11/1/2013'
November 4, 2013 at 5:51 am
Have you tried using bcp or SSIS?
John
November 4, 2013 at 6:23 am
I tried bcp but it does not give a column headers just a data.
November 4, 2013 at 9:03 am
Is there a way to get the column names of the query and stored procedure to text file.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy