Forum Replies Created

Viewing 15 posts - 4,111 through 4,125 (of 8,753 total)

  • RE: Multiple parameter function !

    Orlando Colamatteo (1/1/2016)


    Eirikur Eiriksson (12/21/2015)


    GilaMonster (12/21/2015)


    I don't think that functions have optional parameters that can be left out of the call

    That's correct, neither optional parameters nor default values can be...

  • RE: The Most Common Query Blunders...

    Jeff Moden (1/1/2016)


    Heh... without going into too many details, I've found that one of the most common query blunders is the nearly religious belief in rote, so called "best practices"...

  • RE: query for datetime

    drew.allen (12/31/2015)


    Jeff Moden (12/30/2015)


    Here's the code I wrote last night with the validation checks that I added today. Details are in the comments in the code.

    GREAT! But suppose your...

  • RE: query for datetime

    Ed Wagner (12/31/2015)


    Eirikur, I've really come to enjoy your test harness. I particularly like how it uses the actual execution times instead of SET STATISTICS and I appreciate the...

  • RE: Are the posted questions getting worse?

    Happy new year and may the source be with you.

    😎

  • RE: query for datetime

    Jeff Moden (12/30/2015)


    --=================================================================================================

    -- Calculate the sum of the durations

    --=================================================================================================

    --===== Calculate the total duration in decimal hours.

    -- This won't break if...

  • RE: It's the end of the year

    Happy new year!

    😎

  • RE: Explicit Transactions

    Thank you Steve for this article, very good job indeed.

    😎

  • RE: Covert columns to rows

    Another quick solution, details in the comment

    😎

    CREATE PROCEDURE dbo.USP_LIST_TABLE_AS_EAV

    (

    @DB_NAME SYSNAME = N''

    ,@SCHEMA_NAME...

  • RE: How can I rewrite this statement?

    Not too bad twin.devil but there is still room for improvement

    😎

    Test harness

    USE tempdb;

    GO

    SET NOCOUNT ON;

    --/*

    IF OBJECT_ID(N'dbo.ExchangeRate') IS NOT NULL DROP TABLE dbo.ExchangeRate;

    CREATE TABLE dbo.ExchangeRate

    (

    ...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (12/29/2015)


    Phil Parkin (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    Phil Parkin (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    Phil Parkin (12/29/2015)


    Grant Fritchey (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    I really appreciate the effort of those who write the articles posted on this...

  • RE: Dynamic Query issue

    Luis Cazares (12/28/2015)


    It seems like your code can be rewritten like this

    SELECT *

    FROM TblMain m

    Where EXISTS ( SELECT 1

    ...

  • RE: Another XML explicit problem

    I think Jeff has a pint point here with the anti XML and SSIS garlic, keep it around your neck and you will stay healthy:-D

    😎

    Something tells me that things have...

  • RE: Are the posted questions getting worse?

    Phil Parkin (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    Phil Parkin (12/29/2015)


    Grant Fritchey (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    I really appreciate the effort of those who write the articles posted on this site but sometimes the quality seriously...

  • RE: Get Set For Speed

    GilaMonster (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    The set based code implies a hash aggregation while the loops can utilize stream aggregation as there is effectively no partitioning in each loop's execution. Makes quite...

Viewing 15 posts - 4,111 through 4,125 (of 8,753 total)