Solved

Job for report user permissions

Posted on 2010-11-17
6
281 Views
Last Modified: 2012-05-10
Hello,

I need to create a job which will send an email with the report.I have the sql with me,but i am not able to understand how the output will be sent to the mail.I am a newbie for the sql server.Please  help.If any one has any document with screen shot is much appreciated.

Looking Forward for you replies

Thanks
Kishore
0
Comment
Question by:Kodukulla
6 Comments
 
LVL 4

Expert Comment

by:Romi Kuntsman
ID: 34161860
I believe you need this:
http://dotnetslackers.com/articles/sql/UsingSQLServerIntegrationServicesSSIS.aspx
This explain how to make a workflow and send an email.
There it is in case of an error, but you can adjust it to send upon success.

How do you want to send the report with the email? Attachment? Upload?
0
 
LVL 6

Accepted Solution

by:
subhashpunia earned 500 total points
ID: 34162596
Configure the Database Mail. To know how to do that, please check this article:

http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/
0
 

Author Comment

by:Kodukulla
ID: 34164338
Thanks Romi & Subhash,

I have configured the database mail.But i need to run the attached script,which will give us the results,i need those results to be sent to my email ID.Can you please let me know how to create the job for that.
 .The script which is attached ,i need to run it on each database one by one.But i want it to be modified in that way,so that it runs on each database (except sys databases).I am not a that good developer to code that.Can you please help.Also please let me know how to setup that job as mentioned above.
Extract-Database-Users-and-Datab.sql
0
 
LVL 4

Expert Comment

by:BostonMA
ID: 34175178
Adding the logic you want to the script is not a trivial.  Unless you can find it prewritten elsewhere on the web I would reccomend creating a RS report with one data set for each database you want to run this against. Then output the results into various tables in your report. Will that work?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question