Viewing 15 posts - 21,706 through 21,720 (of 59,072 total)
RonKyle (1/24/2015)
What are the issues with DATETIME2 and DATEDIFF?
Simple. Given a single row that contains StartDate and EndDate columns as DATETIME2 columns, write the code to calculate the duration...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2015 at 10:53 am
Let's answer the questions in the reverse order of your posts.
lawlietdba (1/24/2015)
Please spare me, im asking same doubt again, :unsure:
Im doing the testing of the new trigger without...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2015 at 10:41 am
lawlietdba (1/24/2015)
Sorry for the late reply, I took some time to find out things you asked...
I also come up with doubts regarding the things you said,
Please spare me...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2015 at 2:35 am
Ugh! Understood.
Are you, by any chance, defining a tag as <a>, <col>, or <del>somewhere in the mix? Or maybe there's an "unclosed" tag somewhere? Other than that,...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2015 at 12:26 am
ErikMN (1/23/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2015 at 12:03 am
TomThomson (1/23/2015)
Sean Lange (1/23/2015)
Eric M Russell (1/23/2015)
Date/Time: datetime, offset, varchar?There is only one option here. Datetime.
I suppose if your dBMS is anccient enough that's excusable. But it probably...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 11:44 pm
There is a difference between what you can see on the screen from SSMS and what is actually in a column. You've already seen that. How do you...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 11:04 pm
Sorry... post withdrawn. Let me look at your post again.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 10:58 pm
sm_iransoftware (1/23/2015)
[Id] [bigint] IDENTITY(1,1) NOT NULL,
[SessionId] [bigint] NOT NULL,
[RegDate] [date] NOT NULL,
[RegTime] [time](0) NOT NULL,
[ReferrerUrl] [nvarchar](2000) NOT NULL,
[LandingUrl] [nvarchar](2000) NOT NULL,
CONSTRAINT [PK_TBL_Request_Id] PRIMARY KEY CLUSTERED
(
[Id] DESC
)WITH...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 10:45 pm
whereisSQL? (1/23/2015)
Ed Wagner (1/23/2015)
SQLRNNR (1/23/2015)
yikesAway
journey
First-Step
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 10:21 pm
simon_s (1/23/2015)
thanks for the input
as far as I was concerned the updated flag was a poor choice but the only one I had, the updated data isnt...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 10:11 pm
Sean Lange (1/23/2015)
Jeff Moden (1/23/2015)
Sean Lange (1/23/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 9:34 pm
Cadavre (1/23/2015)
ChrisM@Work (1/23/2015)
SELECT MondaysThisMonth = DATEADD(DAY,n,MondayBeforeFOM)FROM (
SELECT FirstOfMonth, MondayBeforeFOM = DATEADD(DAY,DATEDIFF(DAY,0,FirstOfMonth)/7*7,0)
FROM (SELECT FirstOfMonth = DATEADD(MONTH,DATEDIFF(MONTH,0,GETDATE()),0)) d
) e
CROSS JOIN (SELECT 7 UNION ALL SELECT 14 UNION ALL SELECT 21 UNION ALL...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 6:49 pm
Grant Fritchey (1/23/2015)
Steve Jones - SSC Editor (1/23/2015)
Sioban Krzywicki (1/23/2015)
GilaMonster (1/23/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 4:04 pm
Sean Lange (1/23/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 23, 2015 at 4:00 pm
Viewing 15 posts - 21,706 through 21,720 (of 59,072 total)