Solved

HTML Conditional Formatting dbmail

Posted on 2009-05-04
7
605 Views
Last Modified: 2012-05-06
I have a stored proc on sql 2005 server that sends out emails in html format.  It gets its data from a database view on the same server.  Everything currently works great and all emails get sent, however I would like to put some of the fields that it retrieves from my view in red if a condition is met.  

How can this be done?
0
Comment
Question by:H-SC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 41

Expert Comment

by:ralmada
ID: 24295264
0
 
LVL 41

Expert Comment

by:ralmada
ID: 24295287
And for conditional formatting, check this other one:
http://www.arstdesign.com/articles/avs/conditionalformatting.html
 
0
 
LVL 1

Author Comment

by:H-SC
ID: 24295302
ralmada,

I currently have the email formated as html ad is working great.  I need to conditionally format that html to have the text be red if a condition is met on the field that gets pulled from the view.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 1

Author Comment

by:H-SC
ID: 24295321
ok, just got your last posting after I posted my reply.  I will take a look at the link...
0
 
LVL 41

Accepted Solution

by:
ralmada earned 500 total points
ID: 24295358
0
 
LVL 1

Author Comment

by:H-SC
ID: 24295459
ralmada,

I am going to go with the last one....  Many thanks for your help with this one.
0
 
LVL 1

Author Comment

by:H-SC
ID: 24296209
ralmada,
Applied the code from the last site that you sent and worked perfect!  thanks for sending me in the right direction
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how the fundamental information of how to create a table.

707 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