Forum Replies Created

Viewing 15 posts - 7,156 through 7,170 (of 7,614 total)

  • RE: UNIQUEIDENTIFIER vs BIGINT

    Typically customer codes are sequential. Since they're not here, that would definitely make the clustering key choice much more difficult.

    If customer code is (almost) always used for lookups/processing, you...

  • RE: Running out of Identity values

    Eugene Elutin (10/2/2012)


    ScottPletcher (10/2/2012)


    sql-lover (10/2/2012)


    bteraberry (10/2/2012)


    ScottPletcher (10/2/2012)


    Maybe I'm missing something.

    Why not just ALTER the column to be a bigint instead of an int?

    He said these are very big tables. ...

  • RE: Running out of Identity values

    sql-lover (10/2/2012)


    bteraberry (10/2/2012)


    ScottPletcher (10/2/2012)


    Maybe I'm missing something.

    Why not just ALTER the column to be a bigint instead of an int?

    He said these are very big tables. Altering the column...

  • RE: Running out of Identity values

    sql-lover (10/2/2012)


    ScottPletcher (10/2/2012)


    Maybe I'm missing something.

    Why not just ALTER the column to be a bigint instead of an int?

    NO way! Because downtime! Why do you think that I am taking...

  • RE: Get multiple rows of data based on one condition and grouping

    CELKO (10/1/2012)


    Most of the work in RDBMS (80 to 95%) is done in the DDL; you have never learned how to design data, so your code looks like a loose...

  • RE: Get multiple rows of data based on one condition and grouping

    SELECT *

    FROM dbo.CustomerPurchase cp

    WHERE

    cp.PurchaseDate = '20120601 00:00:00.000' AND

    EXISTS(

    SELECT 1

    ...

  • RE: Running out of Identity values

    Some other thoughts/possibilities:

    Rather than export and then import, it should be faster to just directly INSERT INTO the new table, naturally doing a table lock on the new table.

    Pre-allocate enough...

  • RE: Running out of Identity values

    bteraberry (10/2/2012)


    ScottPletcher (10/2/2012)


    Maybe I'm missing something.

    Why not just ALTER the column to be a bigint instead of an int?

    He said these are very big tables. Altering the column means...

  • RE: varchar to time or datetime or ARGGHH Please help me.

    dwain.c (9/26/2012)


    Nice set up data Sean!

    Using it, I'd like to offer a slightly less verbose solution:

    SELECT *, WaitTime=DATEDIFF(minute

    ,CAST(check_in AS TIME)

    ,CAST(STUFF(appt_time, 3, 0,...

  • RE: Running out of Identity values

    Maybe I'm missing something.

    Why not just ALTER the column to be a bigint instead of an int?

  • RE: TSQL Case Statement help

    SQL Server is optimized to do table lookups, whereas CASE statements are comparatively very slow.

    Therefore, I suggest using a lookup table, as suggested by others. You absolutely want to...

  • RE: t-sql - days to week and days

    #days / 7 = #wks

    #days % 7 = #days

  • RE: Easy Question - Indexes on Tables in a view

    I wouldn't duplicate l lot of columns for a covering index w/o real research showing it was 100% necessary.

    You should consider the possibility of clusterting tableB on fk_id, but that...

  • RE: UNIQUEIDENTIFIER vs BIGINT

    Eugene Elutin (10/2/2012)


    [

    ...

    Is this statement true? If so is it better to use Guid or BIGINT?

    It depends, but usually BIGINT is better.

    Another question, related to keys... If a table uses...

  • RE: IDENTIY COLUMN Property behaviour

    Ellen-477471 (10/2/2012)


    Is there a chart somewhere that shows the maximum number of identity values for the data type used when creating an identity field in a table?

    I've searched for this...

Viewing 15 posts - 7,156 through 7,170 (of 7,614 total)