March 16, 2016 at 7:33 am
Does SQL Server Management Studio have the option to automate a query (and dump it in Excel) and email to people?
March 16, 2016 at 7:40 am
cory.bullard76 (3/16/2016)
Does SQL Server Management Studio have the option to automate a query (and dump it in Excel) and email to people?
SSMS is a client tool and does not have that option.
The database engine has several extended procedures to do that through the SQL Agent. I believe that the Agent also has specific tasks to send mail if you don't want to stay with sp_send_dbmail.
You could also do that with subscriptions on SSRS.
Or automate an SSIS package.
March 16, 2016 at 9:17 am
Check this (first google result):
http://www.sqlservercentral.com/Forums/Topic1156421-391-1.aspx
March 16, 2016 at 9:38 am
There are a few more: http://www.sqlservercentral.com/articles/powershell/130717/
http://www.sqlservercentral.com/articles/Excel/64838/
Really you need a driver, which can be some scheduler. SQL Agent, Windows Scheduler, etc.
Then you need automation. There are numerous ways, but if you want to export a query, bcp, Excel Macros, and more work fine.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply