Viewing 15 posts - 1 through 15 (of 19 total)
when creating an index you can filter the index key to read only N number of characters in field e.g abcdefg and not abcdeftgghhjjjjjjjjjjjjjjjjjjjjjjjjjj. I understand that when the...
March 10, 2011 at 9:40 am
Thank you, I have this working
It just sounds like it should be much easier to do than it is.
October 25, 2010 at 3:17 am
your first suggestion seems much simpler. trying that now...
thanks for you time
August 10, 2010 at 1:55 am
Thanks for your help.
The initial proble, was where the two dates in the date diff span two months, the ouput is only considering datediff within the same month.
using your code:
CREATE...
July 30, 2010 at 7:45 am
--Where a date diff is calculated within the same month i.e. where the planned.period
--dates used in the date diff are both in June 20-07-2010 (EventType=5) and 10-07-2010 (EventType=11),
--the...
July 29, 2010 at 9:02 am
thanks for being patient with me Chris. I'll get you some better raw material post haste...
July 29, 2010 at 5:50 am
Sorry about that. How's this?
INSERT INTO [PELVIS].[dbo].[Event]
([DataSource_ID]
,[EventType_ID]
...
July 28, 2010 at 9:23 am
Hello there. Thanks for your help.
The Create Table:
CREATE TABLE [dbo].[Event](
[ID] [int] IDENTITY(1,1) NOT NULL,
[DataSource_ID] [int] NOT NULL,
[EventType_ID] [int] NOT NULL,
[User_ID] [int] NOT NULL,
[Period] [datetime] NULL,
[Notes] [varchar](255) COLLATE Latin1_General_CI_AS NULL,
[Success]...
July 28, 2010 at 8:55 am
Its been a while since i posted the question above but I've recently noticed a problem with the code. Utilising the ABS() suggestion above, I came up with the...
July 28, 2010 at 4:59 am
ahh yes, you're right. very much appreciated.
thanks
February 12, 2010 at 7:04 am
Thanks for link. What skt5000 was fine. I popualted the calendar with his logic up until 01-01-2020, which is fine for my purposes.
February 12, 2010 at 5:19 am
Is this okay
event table------------
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Event](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Source_ID] [int] NOT NULL,
[EventType_ID] [int] NOT NULL,
[User_ID] [int] NOT NULL,
[Period] [datetime] NULL,
CONSTRAINT [PK_Event] PRIMARY...
January 8, 2010 at 8:40 am
thanks for your help guys.
I'm not sure how to re-write the sub query, what functions do I use to return the negative value?
January 8, 2010 at 7:04 am
Viewing 15 posts - 1 through 15 (of 19 total)