Forum Replies Created

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

  • RE: Problems with partitioned views

    Bob Cullen-434885 (1/6/2015)


    Great question! Like the previous poster, I also have the potential to use this scenario, as we are keeping way too many records in our "live" tables, but...

  • RE: Create Table FAILED!?

    patricklambin (12/30/2014)


    As I have installed only SQL Server 2012 and 2014 instances , I am obtaining only the following message

    Warning! The maximum key length is 900 bytes. The index 'PK__QoTD__2CB664DD844B62FA'...

  • RE: Create Table FAILED!?

    I googled "Msg 2714" and answered correctly.

  • RE: Linked lists

    Another solution is adding a xml column to the PlayList table and add the execution order there. So, it's just ONE update on ONE column.

  • RE: Linked lists

    natalie.ignatieva (12/21/2014)


    This is a great solution, linked list idea adds complexity though. You can easily change the way you rank your songs and make Position column as float. Then you...

  • RE: I have no id

    It might be better to use JOINS, but that is a different question.

    I disagree! JOINS are different than IN or EXISTS in the WHERE clause.

    JOINS multiply the number of...

  • RE: NO COUNT

    Extremely easy!

    The answer is in the title!

    😀

  • RE: EXECUTE

    Bello!

  • 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!

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