Forum Replies Created

Viewing 15 posts - 5,821 through 5,835 (of 7,608 total)

  • RE: Trigger or Not Trigger

    LutzM (9/3/2014)


    ScottPletcher (9/3/2014)


    ...

    There are 3rd party solutions that do that, but they are rather expensive. At least one we investigated uses its own "black box" to hold the data...

  • RE: memory settings from default to 4500 MB

    If you want to verify the current setting, run this statement:

    EXEC sp_configure 'max server memory'

  • RE: Using COALESCE and also trying to multiply and divide

    CELKO (9/3/2014)


    You doing everything wrong. Where is the DDL? That is minimal Netiquette in SQL forums. Is this all INTEGER math? I hope not! But that is what your coalesce...

  • RE: Using COALESCE and also trying to multiply and divide

    SQL Server has a feature called computed columns that could be very useful here. Basically you can create a virtual column based on a computation, and it becomes effectively...

  • RE: Trigger or Not Trigger

    LutzM (9/3/2014)


    One of the issues when using triggers to audit changes is the ability to disable the trigger, apply the change and re-enable the trigger.

    Without any audit for DDL changes...

  • RE: Trigger or Not Trigger

    Triggers can capture the originating user as well if you provide that info to the trigger. This can be passed in several ways, including CONTEXT_INFO, APP_NAME or even a...

  • RE: Index analysis

    Agreed, there's no easy way to tell if an index has extra columns. You can use the missing index stats to get a feel for missing column(s) though. ...

  • RE: primary key discussion

    Eirikur Eiriksson (8/29/2014)


    Thank you Scott, Tom and Lynn, this was the discussion I wanted to get going in this context. The subject is far to dependent on the environment and...

  • RE: primary key discussion

    Lynn Pettis (8/29/2014)


    ScottPletcher (8/29/2014)


    The page split / fragmentation concern is often overblown. Remember, one INSERT, but you may read the row 1000, 10K, 100K+(?) or more times. Particularly...

  • RE: primary key discussion

    The page split / fragmentation concern is often overblown. Remember, one INSERT, but you may read the row 1000, 10K, 100K+(?) or more times. Particularly given the availability...

  • RE: primary key discussion

    Eirikur Eiriksson (8/29/2014)


    ScottPletcher (8/29/2014)


    patrickmcginnis59 10839 (8/29/2014)


    CELKO (8/22/2014)


    What do you use for the PK on lookup tables?

    I use the encoding that is being used. The IDENTITY property (not a column!)...

  • RE: primary key discussion

    patrickmcginnis59 10839 (8/29/2014)


    CELKO (8/22/2014)


    What do you use for the PK on lookup tables?

    I use the encoding that is being used. The IDENTITY property (not a column!) is the count...

  • RE: Which perform better comparing only date part of datetime?

    amns (8/29/2014)

    Instead of a datetime, if I cast a string with format 'yyyy-MM-dd',

    will this cast always result in the correct date regardless the collation or other server parameters? (considering this...

  • RE: get counts from two columns in two different tables

    j_depp_99 (8/29/2014)


    thanks much for your response. Testing it now but not sure about the variable. What does this represent? ?

    Msg 207, Level 16, State 1, Line 8

    Invalid column name...

  • RE: get counts from two columns in two different tables

    Something like below. I don't have test data, so haven't tested it yet.

    Edit: The WHERE conditions on your original query caused the LEFT JOIN to become a de factor...

Viewing 15 posts - 5,821 through 5,835 (of 7,608 total)