Viewing 15 posts - 1,501 through 1,515 (of 6,036 total)
Lynn Pettis (4/14/2016)
Sean Lange (4/14/2016)
Mike Frazer (4/14/2016)
Thank you...attached.Edit: I added the DDL for the related objects as scripts.txt
Those nested views are going to kill your performance something fierce. They...
April 14, 2016 at 3:54 pm
Jeffery Williams (4/13/2016)
You can change the DB name, I just have that...
April 13, 2016 at 9:10 pm
Peter Shilovich (4/12/2016)
NewID() doesn't matter in this case
Actually NEWID() does matter in this case.
Check the execution plan for
Select
Coalesce ((Select Value From Test Where ID = (Select ABS(CheckSUM(NEWID()) / 100000000))),...
April 13, 2016 at 7:13 pm
Are you sure those are actually question marks?
Those might be characters not from your default code page.
Because you import some sort of unicode strings into varchar columns those characters are...
April 13, 2016 at 5:41 pm
Did you try to run the EXISTS part separately?
What does it return?
Select * from Tracer Where TracerNo='1Z9306X40344831'
April 13, 2016 at 5:32 pm
dan-572483 (4/13/2016)
April 13, 2016 at 4:14 pm
BTW,
Can you please explain the logic of this?
DateFrom='2010-02-02', DateTo='2011-03-11', Age= 1 Years, 1 Months 8 Days
To me, these dates
DateFrom='2010-02-02', DateTo='2011-03-02'
have 1 year, 1 month and 0 days between...
April 11, 2016 at 11:08 pm
Calendar is not a thing for straight forward calculations.
You need a smarter approach.
1. Figure out the number of whole years between FromDate and ToDate
2. Add those whole years to FromDate...
April 11, 2016 at 10:37 pm
It looks line those 2 tables contain records about the same phone cals recorded by 2 different systems on opposite ends of the calls.
Clocks on those systems might be...
April 11, 2016 at 10:25 pm
sestell1 (4/7/2016)
April 10, 2016 at 6:34 pm
From the last comment by that link:
the error does not appear if you add a clustered index to the temp table in question
April 10, 2016 at 4:03 pm
from Accounts.RequisitionAccountAccess RAA with (nolock)
inner join [GDML.eResults.DataStore].[Admin].[AllowedAccountUserAccess] AS AAUA with(nolock)
on ((RAA.AccountID = AAUA.AccountID AND RAA.AddressID = AAUA.AddressID )
OR(RAA.AccountID = AAUA.AccountID AND AAUA.AddressID = 0))
inner join [GDML.eResults.UserStore].[dbo].[aspnet_Users] AS U...
April 8, 2016 at 1:31 am
CREATE TABLE [Admin].[AllowedAccountUserAccess](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
[UserID] [uniqueidentifier] NOT NULL,
[AccountID] [bigint] NOT NULL,
[AddressID] [bigint] NOT NULL,
CONSTRAINT [PK_AllowedAccountUserAccess] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY...
April 8, 2016 at 1:27 am
1st thing falling into my eye:
inner join [GDML.eResults.DataStore].[Admin].[AllowedAccountUserAccess] AS AAUA with(nolock)
on ((RAA.AccountID = AAUA.AccountID AND RAA.AddressID = AAUA.AddressID )
OR(RAA.AccountID = AAUA.AccountID AND AAUA.AddressID = 0))
needs to be
inner join...
April 8, 2016 at 1:01 am
Viewing 15 posts - 1,501 through 1,515 (of 6,036 total)