Forum Replies Created

Viewing 15 posts - 406 through 420 (of 812 total)

  • RE: Slowly Changing Dimension Transformations

    Good work! 🙂

  • RE: Space missing in SELECT statement

    Good tricky question!

    😀

  • RE: Parameter sniffing

    palotaiarpad (10/17/2013)


    Is it a useful knowledge?

    Yes, it is.

    Sometimes, store procs run slow because of parameters sniffing and obsolete query plan.

    If you recompile, store procs may run better.

  • RE: Transaction

    Clear and easy question! Thanks!

    🙂

  • RE: Field Lengths

    DATALENGTH provides exact length of the field if it is fixed length. If the field is of variable length, it returns the length of the data in the field

    It's...

  • RE: SSIS

    Easy, if you know it.

  • RE: What happens to a variable after COMMIT or ROLLBACK

    Too much easy!

    Thanks for TWO free points.

  • RE: Database permissions

    Ford Fairlane (10/3/2013)


    Not a big fan of questions involving deprecated features, that never seem to go away.

    +1

  • RE: Extended Procs

    sknox (10/1/2013)


    Haven't had time to research SQL 2014 yet.

    Guessed optimistically.

    Got it wrong.

    Can anyone explain why this should still be around when CLR has been available to replace its functionality since...

  • RE: Extended Procs

    I think that extended procedures are unremovable, also, if Microsoft discourages their use.

  • RE: Filestream data

    Perfect qotd and explanation.

    Thanks!

  • RE: CTE

    John Mitchell-245523 (9/26/2013)


    But my script is simpler

    I know it's a matter of preference, but I'd rather have any complexity tucked away in the CTE definition than in the body of...

  • RE: CTE

    No recursion needed to create a dynamic tally table with a CTE:

    -- Code below is SQL Server 2008 or newer

    with e1(n) as (select 1 from (values (1),(1),(1),(1),(1),(1),(1),(1),(1),(1))dt(n)),

    ...

  • RE: Executing Dynamic SQL

    Be aware of case:

    DECLARE @STR VARCHAR(8000) = N'SELECT * FROM sys.objects'

    EXECUTE SP_EXECUTESQL @STR

    It should be:

    DECLARE @STR VARCHAR(8000) = N'SELECT * FROM sys.objects'

    EXECUTE sp_executesql

  • RE: CTE

    John Mitchell-245523 (9/25/2013)


    Carlo Romagnano (9/25/2013)


    CTE is useless and complicated!

    Clearly not useless, even if your personal preference is not to use them. And no more or less complicated, in my...

Viewing 15 posts - 406 through 420 (of 812 total)