SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 
        
Home       Members    Calendar    Who's On



Sending Advanced Mail in Sql Server 2005 Database Mail Expand / Collapse
Author
Message
Posted Tuesday, October 14, 2008 8:37 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, October 25, 2008 2:53 AM
Points: 6, Visits: 38
Hi
i have a stored procedure and it returns two fields as email and requestIDs

i take emails as recipients and send requestIDs to our users

Now i want to improve my stored procedure to send requests as a table or report with more than one field. But i dont know how to improve it? Could anyone help on this

here is my stored procedure's query section:
set @rec = (select email + ';' from (select distinct email from ST$Users K
left join ST$Requests I on K.id=I.Istek_Sorumlusu
left join ST$RequestLines IST on I.istekid=IST.IstekNo
where istek_durumu 1)t for xml path(''))

after i do the query how could it be possible to send mail as a table or report. (Like a gridview for example maybe giving colors? is that possible?)
Post #585522
Posted Tuesday, October 14, 2008 9:58 AM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Thursday, June 11, 2009 11:23 AM
Points: 766, Visits: 1,909
You'll need to use something like SSRS or Crystal Reports for that.

Seth Phelabaum
Consistency is only a virtue if you're not a screwup. ;)

Links: How to Post Sample Data :: Running Totals :: Tally Table :: Cross Tabs/Pivots
Post #585593
« Prev Topic | Next Topic »


Permissions Expand / Collapse