Forum Replies Created

Viewing 15 posts - 39,451 through 39,465 (of 49,571 total)

  • RE: Comparison of Dates in SQL

    Tao Klerks (4/28/2009)


    As I understand it now, for stored procedures "parameter sniffing" will only happen (or be relevant) if there is not already a full compiled execution/query plan for the...

  • RE: Comparison of Dates in SQL

    Tao Klerks (4/28/2009)


    Interesting approach - we use Convert, relying on the fact that DateTime values are internally stored as floating-point values, with every whole number representing a day:

    Just be careful...

  • RE: Comparison of Dates in SQL

    Tao Klerks (4/28/2009)


    The last one also brought to light a potential issue we have with a number of procedures in one of my environments, where we check for a Null...

  • RE: Database Table usage statistics

    What about Change Tracking? (not the same as Change Data Capture) It's available on all editions.

  • RE: Are the posted questions getting worse?

    Paul White (4/28/2009)


    Would that not work then? :laugh:

    It'll work, that ain't the point

    The latest suggestion in the date-time to date precision discussion, is to store the date part in a...

  • RE: Comparison of Dates in SQL

    Kurt W. Zimmerman (4/28/2009)


    My approach is quite simple. Often times I am passing in a date range into a sproc for selection criteria. What I do is the...

  • RE: Comparison of Dates in SQL

    Tao Klerks (4/28/2009)


    2) What is the relationship between query plan caching and parameter sniffing, eg in a stored procedure? Isn't parameter sniffing essentially doing the opposite of query plan caching?...

  • RE: Optimizer?

    Grant Fritchey (4/28/2009)


    SELECT * FROM TEST101

    WHERE CODE=105 AND ACNO=14000

    ORDER BY CODE

    --WHY IT IS GOING FOR CLUSTRED INDEX OF COLUMN "ID"

    --Now it is going for non clustered index, this is...

  • RE: Are the posted questions getting worse?

    Paul White (4/28/2009)


    On a separate subject, can I ask: Are articles checked or reviewed before publication on SSC?

    There's no technical review done, if that's what you're asking. Firstly Steve's vision...

  • RE: A strange problem with 'select' performance

    johny (4/28/2009)


    Yes. The records that end with '9' take more time every time.

    Can you post output of statistics IO and Statistics time?

  • RE: Multiple daily log backups required in a clustered and mirrored environment

    Schadenfreude-Mei (4/28/2009)


    We are thinking of putting in a log shrink after the backup, but i wanted to check that this was also going to be replicated to the mirror.

    Why,...

  • RE: Upgrading database from 2000 to 2005

    Simon Smith (4/28/2009)


    For example the concept of locking seems to have bypassed them and locking whole tables whilst reporting is common.

    *twitch* Ouch

    I could do without the hassle of setting...

  • RE: TIMEOUT error (client thinks it's SQL Server)

    From Books Online:

    Use the remote query timeout option to specify how long, in seconds, a remote operation can take before Microsoft SQL Server times out. The default is 600, which...

  • RE: Optimizer?

    mithun.gite (4/27/2009)


    SELECT * FROM TEST101

    --WHY IT IS GOING FOR CLUSTERED INDEX OF COLUMN "ID"?

    Because there's no filter of any form. That query reads the entire table, hence the only way...

Viewing 15 posts - 39,451 through 39,465 (of 49,571 total)