Forum Replies Created

Viewing 15 posts - 6,931 through 6,945 (of 7,419 total)

  • RE: UNIQUEIDENTIFIER vs BIGINT

    Grant Fritchey (10/11/2012)


    ScottPletcher (10/11/2012)


    Grant Fritchey (10/11/2012)

    As an aside, the CHAR(2) would be a really poor choice for the first column in a compound key. You'd want to use either the...

  • RE: UNIQUEIDENTIFIER vs BIGINT

    Grant Fritchey (10/11/2012)

    As an aside, the CHAR(2) would be a really poor choice for the first column in a compound key. You'd want to use either the INT or the...

  • RE: please help with query

    Here's an alternative:

    SELECT u.*, n.ID, n.notes

    FROM UserTable u

    INNER JOIN Notes n ON

    (u.lastaccounttype = 'account1' AND n.account1 = 1) OR

    (u.lastaccounttype = 'account2' AND...

  • 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,...

Viewing 15 posts - 6,931 through 6,945 (of 7,419 total)