Link to home
Start Free TrialLog in
Avatar of JohnJMA
JohnJMAFlag for United States of America

asked on

Exporting MS SQL results directly to Excel

Hello,  is there a way to automatically have the results from a MS SQL query get expoerted directly to Excel?

To take it one step further I have a number of scripts that users need to have run every morning or some even just every Monday and I would like to be able to set them up so they automatically fire off and save the results to an Excel spreadsheet in a specific directory with a file name.  Is this possible in SQL?

Thanks,
John
Avatar of colly92002
colly92002
Flag of United Kingdom of Great Britain and Northern Ireland image

You could use Reporting Service subscriptions:
http://msdn.microsoft.com/en-us/library/ms159762.aspx
ASKER CERTIFIED SOLUTION
Avatar of Jason Yousef
Jason Yousef
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
John,

Any Luck?
do you need more help?

Jason
Avatar of JohnJMA

ASKER

Hello Jason,
I have been working on it.  I don't have a solid solution for it ye.  Had something else that came up that has taken most of my time.  I am going to look at SQLCMD a little more.  I would just like a straight dump to Excel from a MS SQL stored procedure.

John
Avatar of JohnJMA

ASKER

Thanks forthe help.  I like the build export to excel solution.  I don't want to use reporting services becasue we are using Crystal Server and I also want to have them  run a solution and go right to excel.  These are for mostly automated processes.

Thans.