Archive for the 'geek' Category

sending mail for each row in a table (SQL 2005)

Friday, August 8th, 2008

You would think this would be quite a simple task right. It probably is if you are some SQL guru I imagine, this whole sending mail from a db is a new concept to me, and I may have missed something very basic (wouldn’t be the first time, and certainly not the last).. it does not seem to be all that straight forward.

My first thought was to go with Database Mail. Well, Database Mail is nice enough, I set it all up nicely following the msdn walkthrough here, the test email fired off fine.. I thought all was good and well until I thought my problem through a bit further. I will have a recordset where each row is associated with someone to email with information in that row. So to use the sp_send_dbmail procedure would involve some kind of cursor/crazy stored procedure that I just wasn’t all that keen on writing. Like I said. Im no SQL guru.

So then one of my collegaues said what about Notification Services. I thought, hey cool, I love the BI tools that come with SQL 2005 (especially reporting services <3) and Notification Services I would love to learn about. So I spent 20 mins googling it and then I find out Notification Services does not ship with SQL 2008. Well that kind of pissed me off a bit because I didnt want to implement some solution that would get scrapped in a few months when we upgrade to SQL 08. Not that my workplace is likely to do that anytime soon.. haha.
Anyway, so then I discovered this awesome, and I mean awesome tutorial that basically explains to do exactly what I wanted. One thing I have learnt though, is that delaying validation on the send mail task will allow you to set the ToLine property using an expression. This is the perfect solution for my problem, and means that for every row in the table/recordset I can send a new email to the required person with information from that row.

Send Mail Task Editor To Line Configuration

Another caveat was that to get exchange to act as a SMTP relay so you can fire off the Send Mail task you need to tweak the default settings a bit. The official word on how to do that is here, basically just add the IP address of your Exchange server to the Relay settings in your exchange system manager.

Now I can spam emails to my co workers when I test this on Monday :D

dulce de leche fudge brownies.

Saturday, May 17th, 2008

Studying for exams puts me in 2 moods. Grumpy being the main one, I severely dislike my after-work free time being taken up by reading code and cramming in properties/method names I will possibly never use. Hungry a close contender – a problem easily resolved by a spot of stress-reducing baking.

Read the rest of this entry »

wse 3.0 good times

Friday, March 28th, 2008

Im having issues with .NET 2.0 WSE 3… My web services respond fine to one client but not another. Both of which are on my local machine. So you think it would be an easy fix…

The request failed with HTTP status 415: Unsupported Media Type.

I have seen all the advice saying to add <soapServerProtocolFactory type=”Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”/> to web.config… But my configs are all looking good so what gives.

Well it appears it was something funky to do with MTOM – I had MTOM settings off on the client and on on the server. Switching it off appears to have worked :)

mtomissue

Now onto the next issue. Sigh. Do not install .NET 3.5 if you still need to publish .NET 2 Web Services….epic issues ftl.

sotware engineering and cupcakes?

Saturday, February 23rd, 2008

I have been wasting time/self educating myself on all sorts of random things today.. wordpress, css, a bit of study for my Microsoft 50-236 exam, SLR’s, organizing my recipe collection when I think I have made a bit of a discovery…

i think there is some kind of link between baking/cupcake decorating/general awesomeness and being a female software engineer/programmer/real life girl geek. for my proof i bring you the all round greatness of:

hellonaomi
chockylit’s cupcake bake shop
the cupcake fairy

and im sure there are probably more. weird. very weird. anyone care to psychoanalyze?

windows vista mce remote control, good times

Sunday, January 20th, 2008

Well having just spent 5 hours of my life trying to work a Vista MCE remote I am asking myself why, why did I not research this more before I did it. Sigh.

I bought the Hauppauge PVR150MCE edition. Why did I not just get the normal edition? I think the name sounded cooler at the time or something. Sigh.

Read the rest of this entry »

Pages: Prev 1 2 3 Next