I’m currently training for the Medtronic Twin Cities Marathon on 10/3/10 and raising money for the American Cancer Society.
The details, along with some fun stuff can be found here:
|
||||
|
I’m currently training for the Medtronic Twin Cities Marathon on 10/3/10 and raising money for the American Cancer Society. The details, along with some fun stuff can be found here:
I’ve got to give a presentation on my role at Medtronic, so here it is: One of my goals for 2010 is to get more involved in the SQL server community. A great way to do this is to use twitter. I’ve been using twitter since January of 2009 – you can follow me here. I’ve had my high usage times (where I check it and post to it all the time) and I’ve had my slower times (where I haven’t opened up tweetdeck in a month). Anywho – I’ve been using it now quite a bit and here’s my SQL lists. If you want to learn the basics of Twitter, here’s the link for BrentOs “Twitter101”. I do suggest you read it and follow him as he’s pretty sharp. Other Twitter people I like to read are….never mind, I was going to do a list, but there’s so many possibilities with this list – there’s something out there for everybody…..
Here’s a link to follow me on twitter: Here’s a script I created to determine when I was going to be at specific miles for a marathon. It’ll give you your miles per hour and your minutes per mile. Then it’ll calculate at what time you will be at different mile marks. Set nocount on Declare @FTime datetime, @Dist float, @RStartTime datetime, @BDown float ----------------------------------- ----Change these for you event----- ----------------------------------- Set @FTime = '3:10:00' Set @Dist = 26.4 Set @RStartTime = '6/19/10 7:30 AM' Set @BDown = 1 --this is the breakdown desired ----------------------------------- ----------------------------------- ----------------------------------- Declare @Htime int, @Mtime int, @STime int, @TSec int, @SPM float, @iCounter float Declare @TheList table (Mile float, RTime datetime, CrossingTime time) Set @Htime = Datepart(hh, @FTime) Set @Mtime = Datepart(mi, @FTime) Set @Stime = Datepart(ss, @FTime) Set @TSec = (@Htime*60*60) + (@Mtime*60) + @Stime Set @SPM = @TSec/@Dist Set @iCounter = @BDown While @icounter < @Dist begin insert @TheList Select @iCounter, Dateadd(ss, @iCounter*@SPM, 0), DateAdd(ss, @iCounter*@SPM, @RStartTime) Set @iCounter = @iCounter + @BDown End ---Insert Last one if not an even mile IF Convert(int, 1000*@Dist) % Convert(int, 1000*@iCounter) <> 0 Begin insert @TheList values(@Dist, Dateadd(ss, @Dist*@SPM, 0), DateAdd(ss, @Dist*@SPM, @RStartTime)) End Select Convert(varchar(20), Dateadd(ss, @SPM, 0), 8 ) as MPM, Round(3600/@SPM, 3) as MPH Select Mile, Convert(varchar(20), RTime, 8 ) as Time, Convert(varchar(20), CrossingTime, 100) as 'SchedTime' from @TheList I’m currently training for the Des Moines Marathon on 10/18/09 and raising money for the American Cancer Society. The details, along with some fun stuff can be found here: |
||||
|
Copyright © 2012 SQL Feather and Quill - All Rights Reserved |
||||