Customized Email

Sep 20, 2007

I have various SSIS packages running on my SQL Server 2005, they are mostly schadule to perform data updations from different locations over remote network.

In every task there is an email object added in so that it can notify about sucessful completion of SSIS package.

Here I want my email should contain some information about how many records updated in system ... or how long it take to complete the job.

Can i include sort of information into email object? if yes ... then how to do it?

Thanks
MIZ

View 4 Replies


ADVERTISEMENT

Logging Customized Errors

Jun 24, 2002

Hi Guys,
I have a bulk process. During the processing incase of any error I need to log error to the SQL Server Error Log.
I checked the help and found the external SP(Srv_Message_Handler) for this purpose.
I am not clear on the usage of this SP. Pls Help.
Vineet

View 1 Replies View Related

Complex Customized Order By

Jun 4, 2007

Hello All,
I am trying to do a complex ordering of my query results. Hopefully I can explain what I am trying to do. To simplify the explanation I have a table with two fields in it.
Table name: SPACE
Column names: SPACE_TYPE_ID, OWNER_ID

What I would like to to is order the results in this exact way:
SPACE_TYPE_ID = 2
SPACE_TYPE_ID = 5
SPACE_TYPE_ID = 6
OWNER_ID Alphabetically (if SPACE_TYPE_ID = 3,4,9)
SPACE_TYPE_ID = 1
SPACE_TYPE_ID = 7
SPACE_TYPE_ID = 8

Basically it will be ordered by the id unless the id is 3,4 or 9. I thought I could possibly use a UNION with three select statements but I believe I can't have three order by statements with a UNION. I also was told about temp tables in the database but have no idea how to use them. Is this a possible solution.

Any help on how to achieve this customized order would be greatly appreciated.

Thanks
jlmoshier

View 5 Replies View Related

Customized Error Output?

Jun 25, 2007

I am using SSIS to load a lot of Excel, csv files. Some of the files will fail for various formating/validation reason. Is it a good way to capture the error and generate a nice error report so the provider can read it easily and correct the data files?

The error log of the package is difficult to read.

View 1 Replies View Related

Matrix Report And Customized Subtotals - Can It Be Done?

May 31, 2007



I need a sales report that would display weekly amounts either sold or forecasted in matrix (pivot) form.

The data used for the report is like following (INV is sold and FC is forecasted):












rtype
region

week

wgt

INV
EU
1
150

INV
US
2
200

FC
US
2
400

FC
US
3
1000

FC
EU
2
100



I want the report to show data like this:












WEEK 1

WEEK 2

WEEK 3

TOTAL


INV

INV

FC

FC

INV

FC

EU
150

100

150
100

US

200
400
1000
200
1400



So I put region as rows, week and rtype as columns, and wgt as data field. Everything works fine except that there will be no grand totals for INV/FC. What I get is:








WEEK 1
WEEK 2
WEEK 3
TOTAL

INV
INV
FC
FC


EU
150

100

250

US

200
400
1000
1600



How can I get my totals? I know I could tailor my data to get INV/FC values into different columns to show as data fields in matrix report. But in this case, every week would always display 2 columns, which is certainly not what I want.

I also know I could add another matrix report to create a simulated total columns, but I wasn't able to "join" these 2 reports properly, there is always some space between them and the report looks unprofessionally. So I am looking for a way to do that with a single matrix.



Second question: how can I paint entire columns into different colors, so that INV is always green and FC is always blue? I tried customizing background color, but it only paints cells with values inside, leaving empty cells white. Is it possible to have the INV columns green, entirely?



Thank you in advance,

Wapper



View 3 Replies View Related

Transact SQL :: Customized Search With Special Characters?

Jun 20, 2015

I am creating a key-wording module where I want to search data using the comma separated words.And the search is categorized into comma ',' and minus '-'. Take a look on the example what I exactly want to do is

I have a main table name `tbl_main` in SQL

AS_ID KWD

1 Man,Businessman,Business,Office,confidence,arms crossed

2 Man,Businessman,Business,Office,laptop,corridor,waiting

3 man,business,mobile phone,mobile,phone

4 Welcome,Greeting,beautiful,bride,celebration,wedding,woman,happiness

5 beautiful,bride,wedding,woman,happiness,mobile phone,talking

6 woman,girl,Digital Tablet,working,sitting,online

7 woman,girl,Digital Tablet,working,smiling,happiness,hand on chin

If serch text is = Man,Businessman then result AS_ID is =1,2
If serch text is = Man,-Businessman then result AS_ID is =3
If serch text is = woman,girl,-Working then result AS_ID is =4,5

What is the best why to do this?

View 2 Replies View Related

Customized Parameters Area For Reporting Services

Oct 23, 2006

Has anyone customized the parameters area to pretty it up and make it more configurable like control number of columns etc?

Or can anyone direct me to a third party component?

Thanks.

View 2 Replies View Related

Problem In SSRS-Customized Excel Export

Feb 25, 2008

Hi...

I am creating an application where I need to export the reportviewer data into formatted excel sheet.

Ex excel sheet should have formatting-

1-Column width set to 8.3
2-Wrap text turned OFF
3-Left Justify all fields
4-Landscape default for orientation.


If I apply these formatting into the .rdl files then it is going to be applicable for all other formats
like csv,xml etc but I don't want to apply these fomatting except the excel report.

I think if I can trap any event when export button is clicked when excel is selected from dropdown menu
then it is going to solve the problem a little bit.


I need this solution as soon as possible.


Regards

Chinmay Chandra Dey
(Software Engineer)

View 5 Replies View Related

Transact SQL :: Show Customized Error To Clients?

Jun 16, 2015

I don't want show the DBMS error to my clients. I want show a simple error instead of SQL error.

View 3 Replies View Related

Transact SQL :: Write Query To Generate Customized Result?

May 24, 2015

I have a dataset which is like:

Month, Day, Location, TotalSales
Jan       1         A  100 
Jan       1         B  200 
Jan        14       A  120 
Feb        2         A  130 
Mar        5         B  150 

I want to transform the dataset using sql query into the following format:

Month, Day, LocationATotalSales, LocationBTotalSales, TotalSales
Jan       1            100                       200                          300
Jan       14           120                        0                             120
Feb       2             130                        0                             130
Mar       5                 0                     150                          150

View 2 Replies View Related

SQL Tools :: Server Management Studio Would Not Save Customized Settings

Aug 20, 2015

We have Microsoft SQL Server Management Studio Version 10.50.2500.0.I change to "Results To Text", and "Display Results in a Separate Tab". Then I restart SQL Server Management Studio; and my settings are gone.Is there a way to save my settings?

View 3 Replies View Related

Sql Server Express Setup Installs The Silent Instattion, Can This Be Customized

May 25, 2007

Hi!



I have created a setup in visual studio and set the sql server as a pre-requsites.



now when the setup is run from

setup.exe

it checks whether sql server is installed... if installed then continues otherwise install sql server express edition, now this installation is silent,



I need to set the sa password during installation of sql server . i have no option to set the password during installation, can any one help



View 1 Replies View Related

Do I Need CAL For A Customized Program Connect To SQL Server 2005 Express Edition?

Dec 27, 2005

Hi all,

I am developing a program to connect to SQL 2005 Express. I don't know if I need any CAL license in order to make the connection. If it is not necessary for the Express Edition case, how about if my client upgrate to SQL 2005 in the future? Do I need CAL license for SQL 2005?

Thanks for any advice given.

View 1 Replies View Related

Reporting Services :: Data Driven Email Subscription With Different Email Per Report Page

Jul 6, 2015

I have a report that gets sends out through a subscription and sometimes the report has multiple pages and all those pages appear within one email.Is it possible to set the subscription in such a way that an email is sent per page when the subscription executes.

View 2 Replies View Related

Dbmail Doesn't Rely On IIS SMTP, How To Set Bounced Email Redirect Email Etc.? Thanks

May 4, 2007

Under IIS SMTP I can set bounced email redirect etc. how to do that with dbmail, the idea is I can get the list of bounced emails somewhere so I can create a report.



Any idea?



thanks

View 2 Replies View Related

Help Split List Of Email Add Comma For Evry Email

May 12, 2008

need help
split list of email add comma for evry email
i have tabe "tblLogin" and in this table i have field emall
like this

emall
-----------------------------------------
aaa@hhhh.mm
nnn@hhhh.mm
mmm@hhhh.mm

need to do ilke this



Code Snippet
@list_email = (SELECT emall FROM tblLogin)

--------------------------i get this
-----------------------@list_email=aaa@hhhh.mm ; nnn@hhhh.mm ; mmm@hhhh.mm

@recipients = @list_email










Code Snippet

IF EXISTS( SELECT * FROM [db_all].[dbo].[taliB] )



BEGIN

DECLARE @xml NVARCHAR(MAX)DECLARE @body NVARCHAR(MAX)

SET @xml =CAST(( SELECT

FirstName AS 'td','',

LastName AS 'td','' ,

Date_born AS 'td','' ,

Age AS 'td','' ,

BirthdayToday AS 'td','' ,

BirthdayThisWeek AS 'td'

FROM [Bakra_all].[dbo].[taliB] ORDER BY LastName FOR XML PATH('tr'), ELEMENTS ) AS NVARCHAR(MAX))

SET @body ='<html><H1 align=center>aaaaaaaaaaaaaaaaaaaaaa</H1><body ><table border = 1 align=center dir=rtl>

<tr>

<td>name</td>

<td>fname</td>

<td>date</td>

<td>age</td>

<td>aaaaaaaaa</td>

<td>bbbbbbbbbbbbbbb</td>

</tr>'

SET @body = @body + @xml +'</table></body></html>'

EXEC msdb.dbo.sp_send_dbmail

@recipients =N'rrr@iec.co.il',

@copy_recipients='rrrrr@iec.co.il',

@body = @body,

@body_format ='HTML',

@subject ='ggggggggggggggggggggg',

@profile_name ='ilan'

END

ELSE

print 'no email today'

View 1 Replies View Related

Load A Text File With Email Addresses And Compare Against A Database Table That Has Email Addresses And User_id

Jul 12, 2007

Hello ALL



what I want to achieve is to load a text file that has email addreses from disk and using the email addresses in the text file look it up against the email addresses in the database table then once matched delete all the users in the table whose email address were in the text file.



I also want to update some users using a different text file.



Please help me with the best way to do this



Thanks in advance

View 6 Replies View Related

Cannot Set Connection Property Of Backup Database Task If Connection String Is Customized In Connection Object

Aug 23, 2006

I added a connection (ADO.NET) object by name testCon in the connection manager - I wanted to programmatically supply the connection string. So I used the "Expressions" property of the connection object and set the connectionstring to one DTS variable. The idea is to supply the connection string value to the variable - so that the connection object uses my connection string.

Then I added a "Backup Database Task" to my package with the name BkpTask. Now whenever I try to set the connection property of BkpTask to the testCon connection object, by typing testCon, it automatically gets cleared. I am not able to set the connection value.

Then after spending several hours I found that this is because I have customized the connection string in testCon. If I don't customize the connection string, I am able to enter the "testCon" value in the connection property of the BkpTask.

Is this an intrinsic issue?

View 2 Replies View Related

Email From SQL

Sep 5, 2000

How do i get the email to be send automatically from SQL

My SQL Server is configured so if sends an email after running a job. The email is been succesfully sent by SQL, but is not atually sent until you login and start up Microsoft Outlook and client on Send and Receive.

Surely there is a way to get SQL to automatically send the message.

I have got outlook to send message immeditally.

My mail server is SendMail - SCO Open Server 5.06

Thanks

David

View 1 Replies View Related

SQL - Email

Mar 9, 2001

Is there a way SQL server to email/send a query results to a user ?

Thanks in advance.

Ivan

View 2 Replies View Related

Email From A Job

Aug 9, 2001

Trying to get a job step to send an email with an explaination in certain failure conditions. The problem is I want the recipient to be the job's operator.
don't know of a way to accesss the job's operator email address cleanly from inside a step

Any ideas?

View 2 Replies View Related

DTS- Email How TO

Sep 20, 2001

IF I HAVE ONE OR MANY PACKAGES HOW DO SEND AN EMAIL TO MY BOSS IF IT BLOWS UP?? ex. INPUT IS MY TRUNCATE STEP, CONNECTION 1 IS MY ODBC, CONECTION 2 IS WHERE THE RESULT WILL BE PLACED INTO. AT ANY ONE OF THOSE STEPS, It BLOWS HOW TO SEND AN EMAIL. THE EMAIL IS ALREADY SETUP BECAUSE I TESTED IT IN THE QUERY ANALYZER WITH THIS STATEMENT ( EXEC xp_sendmail @recipients = 'robertk;laurac',
@message = 'The master database is full.',
@copy_recipients = 'anned;michaels',
@subject = 'Master Database Status') AND IT WORKS.

View 2 Replies View Related

SQL Email

Jun 29, 2004

I want to write a stored procedure that will email Sales Associates and notify them if a customer has had a return number issed for return of defective product. I wanted to do this daily. I am using SQL Server 2000. Is there a way to get SQL to send an email without using Microsoft Exchange? I have a network that is using Workgroup mode and not domains. I can provide SQL a mailbox on our Linux mail server to send the mail.

View 1 Replies View Related

Email

Aug 23, 2004

Hi all me again I gotta question, the Sr executive asst has a number of reports that gets emailed to different department, only problem is those departments are on a totally different server. I am guessing that we need to start SQL AGENT Emailing MAPI to do this for us, of course I could be wrong. This is one of the stored procedures that creates one of the reports

CREATE PROCEDURE createSecurityListtobeEmailed
AS
SELECT SecurityListX."Last Name", SecurityListX."First Name", SecurityListX.MI, SecurityListX.Sex, SecurityListX.DOB, SecurityListX.IR#, SecurityListX."Issue Date", SecurityListX."Date served", SecurityListX.Duration, SecurityListX."Exp Date", SecurityListX."Reason for Exclusion", SecurityListX."Added Comment", SecurityListX.type INTO SecurityList
FROM SecurityListX
GROUP BY SecurityListX."Last Name", SecurityListX."First Name", SecurityListX.MI, SecurityListX.Sex, SecurityListX.DOB, SecurityListX.IR#, SecurityListX."Issue Date", SecurityListX."Date served", SecurityListX.Duration, SecurityListX."Exp Date", SecurityListX."Reason for Exclusion", SecurityListX."Added Comment", SecurityListX.type
HAVING (((SecurityListX."Last Name") Is Not Null))
GO

View 9 Replies View Related

Email Through SQL

Nov 17, 2004

I am trying to setup my sql to send automatic emails to different companies but I am not doing so well. The user puts an email address in the database and then presses a button (command button) that will execute a stored procedure xp_sendmail to a recepient. I need to know how to include read receipts and delivery receipts into the stored procedure, because right now its set up in his outlook as a rule to do this and I want to set it up in sql. The user deals with companies and these companies have several contacts with several email addresses which sql will store in a seperate table.

View 1 Replies View Related

Email

Feb 5, 2004

How can I implement the functionality of sending mail with the help of SP or DTS?
Subhasish

View 2 Replies View Related

Email From Ftp

May 31, 2007

I have tried a few different stored procedures but i'm looking for away to send email from a server that does not have email enabled. (I want to pass in the smtp server and email and password.

Does anyone know of any script?

View 4 Replies View Related

Sql &#043; Email

Oct 24, 2007

Hello everyone

I am working on a little project for work which get the relvant data every 2mins and puts the data into a Data Grid in ASP.net 2.0

Now my SQL scipt runs every 2min and i need to know if at a certain time i could tell the SQL script to run the report and email me the results???

any help would be great

thanks alistair

View 4 Replies View Related

Email

Mar 10, 2008

Quick question ..does DatabaseMail work in sql server express 2008.And if not ... is there a simple work around / solution to get thesame effect .. ie to send email out from sql expressRegardsRob

View 1 Replies View Related

Email

Dec 18, 2007

EXEC master.dbo.xp_sendmail
@recipients=N'myemailaddress@somewhere.com',
@message=N'job failed.' ;

Do you know why the following error is produced?
xp_sendmail: Procedure expects parameter @user, which was not supplied.

Thanks

View 4 Replies View Related

ERD Of An Email App

Mar 14, 2008

Hi, I've been asked to create a small application to send and receive emails with basic functionality like reply and forward
messages. All of them will be stored in a sql database.
I am mainly a programmer so I would like to know if you have any sample ERD I can use as a reference
or if you can help me define the entities, I am not sure how I need to handle the "replied messages" and "Forwarded messages"


Any help will be appreciated.

Armando.

View 5 Replies View Related

Email

May 17, 2007

I would like to automate a report to be emailed to an email address.
When viewing the report, clicked on new subscription.
In the subscription window what options should there be for Delievered By: ?
I currently have: Report Server File Share in the drop down. Should there be other entries in the list too?
Thanks

View 3 Replies View Related

Send Email Through SQL

Sep 11, 2006

Hi all, can i send an email through SQL? i don't want to use third party software. Also, i can't configure the customer's db server. It is possible to send an email without much configuration. If configuration needed, is it possible to configure through SQL script? thx 

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved