March 2, 2016 at 6:03 am
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------------------------- -----------
Jamaica mon! 9
(1 row(s) affected)
March 2, 2016 at 6:03 am
Thanks, all, for the reviews of the presentation.
While my class is now officially over, I'm debating on the possibility of redoing the presentation for a more real-world push of the subject. Any thoughts as to whether or not other people would be interested in it?
March 2, 2016 at 6:04 am
At the last place, I put a seconds-to-end-of-contract countdown in my PowerShell prompt.
$([Convert]::ToInt32(([datetime]'2016-01-08 16:30' - (get-date)).duration().TotalSeconds))
That was the latest in my stream of various countdown apps. Previously I'd written a little 8-digit seven segment display type thing that sat (very small) in the top right corner of my screen doing the same thing. No idea where that code went!
Thomas Rushton
blog: https://thelonedba.wordpress.com
March 2, 2016 at 6:15 am
ThomasRushton (3/2/2016)
At the last place, I put a seconds-to-end-of-contract countdown in my PowerShell prompt.
$([Convert]::ToInt32(([datetime]'2016-01-08 16:30' - (get-date)).duration().TotalSeconds))
That was the latest in my stream of various countdown apps. Previously I'd written a little 8-digit seven segment display type thing that sat (very small) in the top right corner of my screen doing the same thing. No idea where that code went!
I sometimes miss the old Windows Vista desktop gadgets you could run. I had one that was a countdown timer, you could set it for any date you wanted. Was great for keeping an eye on stuff like this...
March 2, 2016 at 9:52 am
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
You could have done this:
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
March 2, 2016 at 10:31 am
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
Enjoy. We are aiming for Glacier National Park this summer.
March 2, 2016 at 10:42 am
Steve Jones - SSC Editor (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
Enjoy. We are aiming for Glacier National Park this summer.
Not a family trip but I am heading to Jazz Fest in New Orleans the last weekend in April. One of my good friends, who actually works for her company, grew up there. It was here idea. She said "you and James need some guy time in New Orleans, you should go to Jazz Fest". Seriously? My wife wants me to go there without the family for several days with no responsibilities of any kind? I of course promptly agreed. I will need a day or two to recover before coming home, it takes longer these days to recover from these kinds of things.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
March 2, 2016 at 12:00 pm
Sean Lange (3/2/2016)
Steve Jones - SSC Editor (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
Enjoy. We are aiming for Glacier National Park this summer.
Not a family trip but I am heading to Jazz Fest in New Orleans the last weekend in April. One of my good friends, who actually works for her company, grew up there. [/b]It was her idea. She said "you and James need some guy time in New Orleans, you should go to Jazz Fest". Seriously? My wife wants me to go there without the family for several days with no responsibilities of any kind? I of course promptly agreed. I will need a day or two to recover before coming home, it takes longer these days to recover from these kinds of things.
Haha! In my home that would be a polite way of saying, "you've been getting on my nerves a bit much lately". ;-). We can't compete with New Orleans but I always recommend people check out Chicago's Jazz Fest. And nobody can compete with our Blues Fest.
-- Itzik Ben-Gan 2001
March 2, 2016 at 12:13 pm
SQLRNNR (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
You could have done this:
I wanted to very badly and still might do the Alaska one. I just found out SQL Cruise existed last year. I mentioned it to my dad and my niece (16) started singing the theme song for Love Boat but was singing "Nerrrrd Ship" instead of "Loooove Boat". :hehe:
-- Itzik Ben-Gan 2001
March 2, 2016 at 12:15 pm
Alan.B (3/2/2016)
Sean Lange (3/2/2016)
Steve Jones - SSC Editor (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
Enjoy. We are aiming for Glacier National Park this summer.
Not a family trip but I am heading to Jazz Fest in New Orleans the last weekend in April. One of my good friends, who actually works for her company, grew up there. [/b]It was her idea. She said "you and James need some guy time in New Orleans, you should go to Jazz Fest". Seriously? My wife wants me to go there without the family for several days with no responsibilities of any kind? I of course promptly agreed. I will need a day or two to recover before coming home, it takes longer these days to recover from these kinds of things.
Haha! In my home that would be a polite way of saying, "you've been getting on my nerves a bit much lately". ;-). We can't compete with New Orleans but I always recommend people check out Chicago's Jazz Fest. And nobody can compete with our Blues Fest.
Yeah the Blues Fest there is pretty awesome. Of course in KC we don't need a festival...it is all year long!!! 😉
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
March 2, 2016 at 12:28 pm
Sean Lange (3/2/2016)
Alan.B (3/2/2016)
Sean Lange (3/2/2016)
Steve Jones - SSC Editor (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
Enjoy. We are aiming for Glacier National Park this summer.
Not a family trip but I am heading to Jazz Fest in New Orleans the last weekend in April. One of my good friends, who actually works for her company, grew up there. [/b]It was her idea. She said "you and James need some guy time in New Orleans, you should go to Jazz Fest". Seriously? My wife wants me to go there without the family for several days with no responsibilities of any kind? I of course promptly agreed. I will need a day or two to recover before coming home, it takes longer these days to recover from these kinds of things.
Haha! In my home that would be a polite way of saying, "you've been getting on my nerves a bit much lately". ;-). We can't compete with New Orleans but I always recommend people check out Chicago's Jazz Fest. And nobody can compete with our Blues Fest.
Yeah the Blues Fest there is pretty awesome. Of course in KC we don't need a festival...it is all year long!!! 😉
And you have good BBQ there too. Of course, New Orleans has cajun, which is its own special breed of goodness.
March 2, 2016 at 12:42 pm
Ed Wagner (3/2/2016)
And you have good BBQ there too. Of course, New Orleans has cajun, which is its own special breed of goodness.
Don't forget the beignets and chicory coffee.
March 2, 2016 at 12:42 pm
Ed Wagner (3/2/2016)
Sean Lange (3/2/2016)
Alan.B (3/2/2016)
Sean Lange (3/2/2016)
Steve Jones - SSC Editor (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
Enjoy. We are aiming for Glacier National Park this summer.
Not a family trip but I am heading to Jazz Fest in New Orleans the last weekend in April. One of my good friends, who actually works for her company, grew up there. [/b]It was her idea. She said "you and James need some guy time in New Orleans, you should go to Jazz Fest". Seriously? My wife wants me to go there without the family for several days with no responsibilities of any kind? I of course promptly agreed. I will need a day or two to recover before coming home, it takes longer these days to recover from these kinds of things.
Haha! In my home that would be a polite way of saying, "you've been getting on my nerves a bit much lately". ;-). We can't compete with New Orleans but I always recommend people check out Chicago's Jazz Fest. And nobody can compete with our Blues Fest.
Yeah the Blues Fest there is pretty awesome. Of course in KC we don't need a festival...it is all year long!!! 😉
And you have good BBQ there too. Of course, New Orleans has cajun, which is its own special breed of goodness.
Amen to that my friend. I haven't been there in a couple years so am really looking forward to it. And of course let's not forget the absinthe bar. http://www.ruebourbon.com/oldabsinthehouse/[/url]
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
March 2, 2016 at 1:03 pm
Sean Lange (3/2/2016)
Ed Wagner (3/2/2016)
Sean Lange (3/2/2016)
Alan.B (3/2/2016)
Sean Lange (3/2/2016)
Steve Jones - SSC Editor (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
Enjoy. We are aiming for Glacier National Park this summer.
Not a family trip but I am heading to Jazz Fest in New Orleans the last weekend in April. One of my good friends, who actually works for her company, grew up there. [/b]It was her idea. She said "you and James need some guy time in New Orleans, you should go to Jazz Fest". Seriously? My wife wants me to go there without the family for several days with no responsibilities of any kind? I of course promptly agreed. I will need a day or two to recover before coming home, it takes longer these days to recover from these kinds of things.
Haha! In my home that would be a polite way of saying, "you've been getting on my nerves a bit much lately". ;-). We can't compete with New Orleans but I always recommend people check out Chicago's Jazz Fest. And nobody can compete with our Blues Fest.
Yeah the Blues Fest there is pretty awesome. Of course in KC we don't need a festival...it is all year long!!! 😉
And you have good BBQ there too. Of course, New Orleans has cajun, which is its own special breed of goodness.
Amen to that my friend. I haven't been there in a couple years so am really looking forward to it. And of course let's not forget the absinthe bar. http://www.ruebourbon.com/oldabsinthehouse/[/url]
Right now, I'd settle for a Jethro-sized bowl of shrimp gumbo.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2016 at 3:41 pm
Alan.B (3/2/2016)
SQLRNNR (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
Ah, using SQL Server DATEDIFF to figure out how many days until my vacation...Hmm, using DD makes it seem so far away, lets try WEEK...
That's a little better...
How about MM?
There we go! Now it doesn't seem so far off!
🙂
SELECT DATEDIFF(DAY,getdate(),@MyVacation)
returns 11! :hehe::hehe::hehe::hehe::hehe:So what does this return?
SELECT Destination, DATEDIFF(day, @MyVacationStart, @MyVacationEnd);
Destination
-------------------------------- -----------
Caribbean Cruise with the family 8
(1 row(s) affected)
Now if I can get DBCC TimeTravel(days) to work 😛
You could have done this:
I wanted to very badly and still might do the Alaska one. I just found out SQL Cruise existed last year. I mentioned it to my dad and my niece (16) started singing the theme song for Love Boat but was singing "Nerrrrd Ship" instead of "Loooove Boat". :hehe:
Just remind her that it would be wise for her to marry a nerd;-). That is a funny theme song for the cruise tho!
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
Viewing 15 posts - 52,981 through 52,995 (of 66,712 total)
You must be logged in to reply to this topic. Login to reply