Solved

Job for report user permissions

Posted on 2010-11-17
6
278 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now