Forum Replies Created

Viewing 15 posts - 7,111 through 7,125 (of 7,597 total)

  • RE: Data file Autogrowth question

    No. Autogrow can be changed anytime, on either data or log, and will be used the next time the file grows dynamically.

    But I suggest using a fixed amount instead...

  • RE: UNIQUEIDENTIFIER vs BIGINT

    I know you want some specifics that you can apply to creating all indexes on all tables, but there really aren't any.

    There are some general rules for creating proper indexes,...

  • RE: UNIQUEIDENTIFIER vs BIGINT

    If you're going to search by Col1 and Col4, then, in general, put them first in the index, to narrow the row range immediately as much as possible.

    I didn't say...

  • RE: UNIQUEIDENTIFIER vs BIGINT

    The nvarchar(20) does make that a problematic clustering key, but it still depends.

    A three-column is not slower to do lookup on if that's what you (almost) always specify in the...

  • RE: select records between a date range

    [Removed, duplicate post.]

  • RE: select records between a date range

    Sean Lange (10/9/2012)


    maryjane9110024 (10/9/2012)


    Hi! I am trying to select records between July 1st 2011 and August 14, 2011. I am not returning any rows at all. I have searched and...

  • RE: Missing Index

    It's also possible you need the other index instead, rather than in addition to, the one you have know.

    You always need to look at the usage stats too when looking...

  • RE: Automating security within triggers

    Or just add the required permission(s) to the model db. Every db created after that will automatically have the same permission(s).

  • RE: T-sql select - like

    jarid.lawson (10/8/2012)


    ScottPletcher (10/8/2012)


    SELECT lastname

    FROM HR.Employees

    WHERE

    lastname LIKE '%[/]%' AND

    lastname NOT LIKE '%[/]%[/]%'

    Still have to add the line that removes / in the first...

  • RE: BULK Insert zwischen Datenbanken

    SQL Server muss immer the log gescrieben.

  • RE: T-sql select - like

    SELECT lastname

    FROM HR.Employees

    WHERE

    lastname LIKE '%[/]%' AND

    lastname NOT LIKE '%[/]%[/]%'

  • RE: Using case in updating column

    Michael T2 (10/5/2012)


    actually that wont work, if shipweight2 and shipweight3 are both null it will update them both. I dont want that

    No, if both are NULL, only shipweight2 will UPDATE,...

  • RE: TempDB avg_write_stalls

    Yeah, 217 is basically awful. Typically you want to see ~(20-)30ms, although the "base" time will vary depending on your specific disk configuration, of course.

  • RE: Using case in updating column

    Very close. I would make some slight adjustments as follows:

    UPDATE dbo.weights

    SET

    shipweight2 = CASE WHEN shipweight2 IS NULL THEN @weight ELSE shipweight2 END,

    ...

  • RE: UNIQUEIDENTIFIER vs BIGINT

    Eugene Elutin (10/4/2012)


    ScottPletcher (10/4/2012)


    I don't think such extremely simplistic rules always work well in tables, large or small.

    Choosing the best indexes takes a lot of careful consideration of your data...

Viewing 15 posts - 7,111 through 7,125 (of 7,597 total)