Solved

Job for report user permissions

Posted on 2010-11-17
6
282 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
push and Pull replication 31 46
Database maintenance 36 98
Upgrading to SQL Server 2015 Express 2 29
how to extract last 6 digits from a varchar, sql 4 19
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

685 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