Forum Replies Created

Viewing 15 posts - 3,556 through 3,570 (of 10,144 total)

  • RE: Are the posted questions getting worse?

    rodjkidd (3/6/2014)


    ChrisM@Work (3/6/2014)


    Are you working in Maidenhead, Rod?

    Chris,

    Work in Bracknell, stay near Bray in Maidenhead at the moment.

    Rodders...

    Not much of a hike then. Bray, home of the Fat Duck. I...

  • RE: Are the posted questions getting worse?

    Are you working in Maidenhead, Rod?

  • RE: Windowed Function in Where Clause

    dwain.c (3/6/2014)


    OK thanks. My head was spinning like Linda Blair's in The Exorcist trying to work out the possibilities. 😛

    My head was spinning like Dwain Camps's in a sweetshop...

  • RE: Calculate and return the previous Date at 18:00 Hours

    dwain.c (3/4/2014)


    ChrisM@Work (3/4/2014)


    SELECT DATEDIFF(dd,0,GETDATE())-1

    SELECT DATEADD(dd,DATEDIFF(dd,0,GETDATE())-1,0)

    SELECT DATEADD(hh,18,DATEADD(dd,DATEDIFF(dd,0,GETDATE())-1,0))

    Use q3. q1 and q2 help explain the algorithm.

    I can do it with just two date function calls:

    SELECT DATEADD(dd,DATEDIFF(dd,0,GETDATE())-1,'18:00')

    I can also name that tune in...

  • RE: Parallel Inserts

    This is an estimated parallel plan - estimating over 600 million rows output.

    Are your stats up to date?

    Any chance of an actual plan please? - just the SELECT. Ensure your...

  • RE: Parallel Inserts

    I don't see the full plan when I load it here, it gets chopped at this point:

    INNER JOIN Database_107.dbo.tblDatabase_107ExchangeRate AS XR WITH (NOLOCK)

    ON O.Column_39 = XR.XRateCurrID

    AND XR.XRateTypeID = 1

    AND XR.XrateColumn_5...

  • RE: Parallel Inserts

    IIRC SQL Sentry Plan Explorer has an "obfuscation" option designed with you in mind, Pete. It would help us a ton if you can do it.

  • RE: Query of 100 mil rows with multiple parameters

    GilaMonster (3/5/2014)


    ChrisM@Work (3/5/2014)


    GilaMonster (3/5/2014)


    ChrisM@Work (3/5/2014)


    If I script out the nc index containing the cluster key as an include column from the code I posted above, the cluster key column...

  • RE: Parallel Inserts

    Can you post the estimated execution plan as a .sqlplan attachment please? And when you get the opportunity, the actual plan too.

  • RE: Query of 100 mil rows with multiple parameters

    GilaMonster (3/5/2014)


    ChrisM@Work (3/5/2014)


    If I script out the nc index containing the cluster key as an include column from the code I posted above, the cluster key column still shows...

  • RE: Is cascade delete Slow

    SSISDB incorporates cascaded deletes and MS release it without including indexes for the fk's in the child tables. As a result, heaps of people (we don't have clustered indexes) saw...

  • RE: Query of 100 mil rows with multiple parameters

    GilaMonster (3/5/2014)


    ChrisM@Work (3/5/2014)


    GilaMonster (3/5/2014)


    A column cannot be present in an index twice.

    Yes I know but...

    Not 'cannot be specified twice', actual 'cannot be present twice', so precluding SQL putting a...

  • RE: Query of 100 mil rows with multiple parameters

    GilaMonster (3/5/2014)


    ChrisM@Work (3/5/2014)


    - The size stats of the two ordinary indexes is virtually the same.

    Exactly.

    A column cannot be present in an index twice.

    Yes I know but...

    If a column is...

  • RE: Query of 100 mil rows with multiple parameters

    GilaMonster (3/5/2014)


    CREATE TABLE ReallyStupidTable (

    ID CHAR(100),

    OtherID INT

    )

    GO

    CREATE UNIQUE CLUSTERED INDEX idx_Silly ON ReallyStupidTable (ID)

    GO

    INSERT INTO ReallyStupidTable (ID, OtherID)

    SELECT ANumber, ANumber FROM (

    SELECT TOP (5000000) ROW_NUMBER() OVER (ORDER...

  • RE: Query of 100 mil rows with multiple parameters

    GilaMonster (3/5/2014)


    ChrisM@Work (3/5/2014)


    If a multi-column clustered index includes a GUID, a nonclustered index which incorporates that same column either as a key or include column is going to be...

Viewing 15 posts - 3,556 through 3,570 (of 10,144 total)