Viewing 7 posts - 1 through 8 (of 8 total)
ok now it works. I was misunderstanding my own problem.
Thanks for your time. 🙂
November 26, 2009 at 11:06 am
The
[ScanDateTime] [datetime] NOT NULL DEFAULT (getdate())
will actually get the current date, not the CreationDateTime.
I think this problem needs a trigger. I do not see how it can be resolved in...
November 26, 2009 at 10:52 am
At the end would be ok. It doesn't matter.
November 26, 2009 at 10:11 am
CREATE TABLE [dbo].[ItemLocationHistory](
[IdItemLocationHistory] [uniqueidentifier] NOT NULL,
[IdItemLocation] [int] NOT NULL,
[BarCode] [varchar](30) COLLATE SQL_Latin1_General_CP1_CI_AI NOT NULL,
[IdItem] [int] NULL,
[CreationDateTime] [datetime] NOT NULL CONSTRAINT [DF__ItemLocat__Creat__093F5D4E] DEFAULT (getdate()),
[IdActor] [int] NULL,
[IdDriver] [int] NULL,
[Model] [varchar](30) COLLATE...
November 26, 2009 at 9:50 am
Thank you CirquedeSQLeil,
The article you gave me is exactly what I was looking for. The guy who wrote the query with the 'cast(...' was trying to strip the time part...
November 13, 2009 at 7:42 am
Hi Jack,
thanks for your suggestions. I am currently implementing them.
This is a query that someone else designed some months ago and I was assigned the task to make it run...
November 12, 2009 at 9:38 am
Hi Jack,
thank you for you reply. I attached the two execution plans in graphical format.
I updated the statistics before getting the plan of the slow database but it changed nothing.
November 12, 2009 at 9:00 am
Viewing 7 posts - 1 through 8 (of 8 total)