Forum Replies Created

Viewing 15 posts - 826 through 840 (of 1,170 total)

  • RE: index locks

    SQLSteve (10/31/2013)


    HI,

    So you would advise to turn Row Locking off?

    I was going to enable page locking either way but wasn't sure whether to have both enabled or not.

    No, Row...

  • RE: index locks

    Hi,

    Since an index cannot be reorganized when ALLOW_PAGE_LOCKS is set to OFF you cannot perform ONLINE operations over that index such as REORGANIZE for e.g.

    The default setting for ALLOW_ROW_LOCKS and...

  • RE: No foreign keys police

    Hi,

    They arguments are FKs makes de DB to run slow, very slow.

    This is not true. Moreover, if the FKs are supported with indexes then they simply bring performance to the...

  • RE: Use of temporary tables in a stored procedure

    Hi,

    It depends.

    If it’s not cached then it will be recompiled the first time it’s executed. Then it should not recompile, unless some operations that cause recompilation are used.

    It can be...

  • RE: Parameter sniffing

    pchirags (10/17/2013)


    sqlnaive (10/17/2013)


    Agreed. ParameterCompiledValue is the one which should be considered to answer this question (as I got it and please correct me if I'm wrong).

    With my earlier attempt it...

  • RE: Parameter sniffing

    Mikael Eriksson SE (10/17/2013)


    Using sp_recompile 'GetIt' will make the entire stored procedure to be recompiled on next execution.

    sp_recompile 'T' recompiles only the queries in the stored procedure that references the...

  • RE: Parameter sniffing

    Very nice QotD!

    Thanks

    IgorMi

  • RE: Parameter sniffing

    nilay.chaudhary (10/16/2013)


    I think this is only related to older SQL versions

    No, it's true for all versions of SQL from 2005+

    You can do a check for the SP calls with this...

  • RE: Using a column name in a COUNT function

    danielfountain (10/15/2013)


    According to MS sys.partitions.rows "Indicates the approximate number of rows in this partition"

    http://technet.microsoft.com/en-us/library/ms175012.aspx

    Hi,

    Microsoft recommends to use the new dynamic views instead of some deprecated for future use

    The same result...

  • RE: Using a column name in a COUNT function

    Hi,

    Why not use

    select p.[rows] from sys.partitions p

    where p.index_id in (0,1) and p.object_id = object_id('[schema].[TableName]')

    to replace count(1)?

    You already have the count for every table in sys.partitions view.

    Regards,

    IgorMi

  • RE: Page Life Expectancy dropping in value

    GilaMonster (10/4/2013)


    IgorMi (10/4/2013)


    PLE min values should not go under 300 seconds.

    That was a poor recommendation 8 odd years ago when servers had maybe 4GB of memory. These days it's...

  • RE: Page Life Expectancy dropping in value

    Loundy (10/4/2013)


    IgorMi (10/4/2013)


    Hi

    PLE min values should not go under 300 seconds. Fluctuating from 14h to 0.1h is still above 300 seconds, but the behavior itslef is not good for the...

  • RE: Page Life Expectancy dropping in value

    Hi

    PLE min values should not go under 300 seconds. Fluctuating from 14h to 0.1h is still above 300 seconds, but the behavior itslef is not good for the database work.

    It...

  • RE: Group Islands of Contiguous Dates (SQL Spackle)

    Nice article!

    I immediately applied the code (with minor changes) on another database, and it worked!

    Thanks Jeff.

    Regards,

    IgorMi

  • RE: SQL Transaction Log

    jason123 (10/3/2013)


    Hi everyone,

    My transaction log file is bigger and bigger every day, can I truncate the file? If it can, does it affect any thing such as performance?

    Best regards;

    Hi,

    You should...

Viewing 15 posts - 826 through 840 (of 1,170 total)