Forum Replies Created

Viewing 15 posts - 61 through 75 (of 129 total)

  • RE: one character of data

    john.arnott (6/8/2009)


    dave.farmer (6/8/2009)


    ... and I want my point back! 😉

    Dave (and others),

    I believe you got a point simply by posting your response. And hey! I think I get...

  • RE: one character of data

    Irish Flyer (6/5/2009)


    NCHAR(1) should not be used, because it is, again, an unnecessary overhead. ASCII character columns, when used with UNICODE column data in T-SQL, are automatically converted for...

  • RE: Create Database

    Jason Shadonix (5/11/2009)


    Those of you saying the syntax is not correct, where are you getting a syntax error? As long as those paths exist, it should run fine.

    Hi Jason,

    It...

  • RE: Create Database

    So, a few problems here:

    - "C:\mssql" is not a default install folder, and most people would probably not have their SQL server instance or files installed there;

    - If...

  • RE: Comparison of Dates in SQL

    GilaMonster (5/1/2009)


    Short answer. UDFs are not considered 'inline'. If they're run in a query, the run once for each row.

    Long answer - http://sqlinthewild.co.za/index.php/2009/04/29/functions-io-statistics-and-the-execution-plan/

    Do you have a ready blog article for...

  • RE: Comparison of Dates in SQL

    Lynn Pettis (5/1/2009)


    Just for S & G's, try this with a CROSS APPLY:

    Sorry, I'm in an all-2000 environment right now. Testing is just a question of copying Gail's code from...

  • RE: Comparison of Dates in SQL

    Alright, alright, point taken - no more converting to float... now I need to go explain the dateadd/datediff thing to my developers...

    I was hoping to be able to provide...

  • RE: Comparison of Dates in SQL

    GilaMonster (4/28/2009)


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

  • RE: Comparison of Dates in SQL

    Alright, I lied - one follow-up:

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

  • RE: Comparison of Dates in SQL

    Thanks Gail, your articles clarified all the questions I had!

    The last one also brought to light a potential issue we have with a number of procedures in one of my...

  • RE: Comparison of Dates in SQL

    Thanks Paul!

    You've just added another dimension of complexity to SQL Performance tuning for me, now I have to go away and think about this. 🙂

    The things that are most unclear...

  • RE: Comparison of Dates in SQL

    This is not something I had ever heard of:

    Paul White (4/28/2009)


    Though the example given may not result in a good plan either, because SQL Server cannot sniff the local variable...

  • RE: Comparison of Dates in SQL

    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:

    SET @DateWithoutTime = Convert(DateTime, Floor(Convert(Float,...

  • RE: Comparison of Dates in SQL

    Hi,

    The following statement is untrue: "it is always a good practice to use DATEDIFF method for date comparison instead of making comparison using logical operators (,=)".

    As the previous two posters...

  • RE: TSQL

    Just in case anyone "in the know" is still on this thread, can anyone explain this phenomenon in SQL Server 2000?

    I looked for an explanation among the many (fascinating) comments...

Viewing 15 posts - 61 through 75 (of 129 total)