Forum Replies Created

Viewing 15 posts - 1,801 through 1,815 (of 6,036 total)

  • RE: Performance Risk\Impact of Partitioning

    Welsh Corgi (11/24/2015)


    I have three tables that are very large and have too many indexes.

    I can easily archive the tables without running into the risk of having to tune the...

  • RE: Subtract column with variable

    It seems you need something like "Running Totals".

  • RE: CTE to improve performance

    GilaMonster (10/12/2015)


    Be careful with table variables, because they don't have statistics

    Not quite true.

    They do not have statistics only if you have not created them.

    But this table variable will have...

  • RE: how to prove network is slow

    Load a file to a table:

    1. From a local folder (local to the server)

    2. From a network location.

  • RE: Query on a large database

    Jayanth_Kurup (11/23/2015)


    Me and Jeff have been having a side bar on this discussion and he will be posting his findings shortly.

    I have already posted my findings here:

    http://www.sqlservercentral.com/Forums/FindPost1738471.aspx

  • RE: Row number over guid

    John Mitchell-245523 (11/22/2015)


    Tinyint = 2 bytes; char(2) = 2 bytes, and I'd be surprised if you observed any noticeable difference in performance. Using a natural key also has the...

  • RE: Row number over guid

    John Mitchell-245523 (11/22/2015)


    Yes, I understand all that. My only point was that a char(3) primary key is no more alien to non-western eyes than a GUID one.

    That is right,...

  • RE: Row number over guid

    Leaving the merky waters of international standards aside:

    Did you ever compare the performance of an INNER JOIN on integer (or binary) columns vs. on character columns (considering they are populated...

  • RE: Row number over guid

    John Mitchell-245523 (11/21/2015)


    Sergiy (11/20/2015)


    First - GIUD is not made of characters. It's a 16 bytes long binary value.

    I thought you'd say that. You're right, but it's still rendered as...

  • RE: Row number over guid

    Sean Lange (11/20/2015)


    Sergiy (11/20/2015)


    And third - US states abbreviations are definitely not an international standard. "CA" - what is it? California? Or Canada?

    That is just absurd. There is no standard...

  • RE: Row number over guid

    John Mitchell-245523 (11/20/2015)


    Good point. Wouldn't it be best, though, to use an international standard where it exists, even if it's in a different alphabet from the rest of the...

  • RE: Row number over guid

    You know, not everywhere on Earth people use Western encoding of Latin alphabet.

  • RE: Row number over guid

    Sean Lange (11/19/2015)

    I would hope that for lookup tables like states and currencies you don't use a guid as the primary key. The ANSI abbreviation is an excellent choice for...

  • RE: Calculating student age as of one of two reference dates

    Would it be easier to add a minimal required age to student's birthday and see if the returned date (date when the student reach the required age) <= of the...

  • RE: Query Performance Problem

    OK,

    Here we go.

    The test as promissed.

    Starting with creating a table:

    CREATE TABLE [dbo].[UsedRedemptionCodesTest](

    [RedemptionCodeID] [int] IDENTITY(1,1) NOT NULL,

    [RedemptionCode] [char](36) NULL,

    [IsActive] [bit] NOT NULL,

    CONSTRAINT [PK_UsedRedemptionCodesTest_RedemptionCodeID] PRIMARY KEY CLUSTERED ([IsActive], [RedemptionCodeID] ASC))

    CREATE UNIQUE NONCLUSTERED...

Viewing 15 posts - 1,801 through 1,815 (of 6,036 total)