Forum Replies Created

Viewing 15 posts - 301 through 315 (of 812 total)

  • RE: In The Beginning

    Extremely easy!

    Thanks!

  • RE: Odd Man Out

    ROWCOUNT_BIG() differs from @@rowcount only from the type.

    So, ROWCOUNT_BIG() is the correct answer. All other functions may be followed by the OVER clause.

  • RE: Table valued parameter

    One solution may be this one:

    use tempdb

    execute (

    '

    use AnotherDB

    declare @a as a

    insert @a values(1),(2),(3)

    exec z @a

    ')

    or using sp_executesql.

  • RE: Trace Flags

    Sql2005 never installed!

  • RE: Formatted output

    Koen Verbeeck (10/29/2014)


    Louis Hillebrand (10/29/2014)


    Koen Verbeeck (10/29/2014)


    Nice question, thanks.

    A bit curious as why you use DATALENGTH instead of just LEN.

    With DATALENGTH you can also use a space as the separator,...

  • RE: Terminating with THROW

    Koen Verbeeck (10/21/2014)


    Very excellent question.

    Thanks Sean.

    +1

  • RE: Plan Guides

    Very interesting!

    Thx!

  • RE: Create a stored procedure

    happycat59 (10/14/2014)


    I get error

    Msg 156, Level 15, State 1, Procedure my_sp, Line 2

    Incorrect syntax near the keyword 'FROM'.

    because "Column" is a reserved keyword and needs to be delimited if you...

  • RE: How Many Different Random Numbers?

    rabih_karam (9/30/2014)


    I run the query and I got the below result :

    DATABASE Name : Master

    -----------------------------

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713647892126698

    0.713647892126698

    0.713647892126698

    0.713647892126698

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713722424011731

    0.713852854810538

    0.713871487781797

    0.713871487781797

    0.713908753724313

    0.713908753724313

    0.713908753724313

    and if i run it on other DB I ll get the below result

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713591993212924

    0.713852854810538

    0.713852854810538

    0.713852854810538

    0.713852854810538

    0.713852854810538

    0.713852854810538

    so in...

  • RE: How many rows will be returned?

    Triggers on tables execute only if at least ONE row is affected. So, explanation is wrong.

  • RE: Which type of Numbers?

    WOW64, I learned something new!

    😀

  • RE: Merge Targets

    From BOL:

    MERGE

    [ TOP ( expression ) [ PERCENT ] ]

    [ INTO ] <target_table> [ WITH ( <merge_hint> ) ] [...

  • RE: Synonyms 1

    Eirikur Eiriksson (9/7/2014)


    ...but it works for Joe in HR (that's his default schema);-)

    😎

    That's true!

  • RE: Central Respository

    😀

  • RE: What will this query return?

    pmadhavapeddi22 (9/4/2014)


    When I work with CTE, I get this error when I dont give smicolon, so it was easy to answer 🙂

    Thanks for the question

    +1

Viewing 15 posts - 301 through 315 (of 812 total)