Forum Replies Created

Viewing 15 posts - 3,121 through 3,135 (of 3,347 total)

  • RE: TSQL variable

    shnizzle (8/29/2008)


    Hugo, I read the KB article and even when taking it into account, I think that my code is correct - it looks exactly as the statement described...

  • RE: Uncommon Table Expressions

    Jeff Moden (8/29/2008)


    Hugo Kornelis (8/29/2008)


    On second look - the string concatenation technique used to piece the bits back together is undocumented, and might cause unexpected results. Not good for production...

  • RE: TSQL variable

    shnizzle (8/29/2008)


    Hugo, is it not documented or documented as not defined? This code reminded me of a function I use that operates on the same principle in order to concatenate...

  • RE: TSQL variable

    shnizzle (8/29/2008)


    Since isnull(@var,1)=1 then the following code should be equivalent to the original:

    Declare @var int

    Select @var = 1+ Value1

    From (Select 1 Value1 Union All Select 1 Union All...

  • RE: Uncommon Table Expressions

    The article presents a nice example of a possible use for a new technique - but unfortunately, the choice of examples is a bit bad.

    I think every advanced SQL Server...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    thomas.lamp (8/6/2008)


    The tally table is wonderful -- thought I'd post another use I'm getting from it: finding a minimum numeric record key within a potentially gapping set.

    So my TableWithManualKey table...

  • RE: GROUP BY ALL

    hodgy (8/4/2008)


    I enjoyed this question (even though the clause is being phased out!) as it was something I wasn't aware of, and it made me go off and research the...

  • RE: Updating through cursors

    Jeff Moden (7/24/2008)


    Thanks for taking the time for that feedback, Hugo. I appreciate it.

    Running totals are no excuse for using cursors... not even for display.

    http://www.sqlservercentral.com/articles/Advanced+Querying/61716/

    Hi Jeff,

    Just as I appreciate...

  • RE: Updating through cursors

    Jeff Moden (7/24/2008)


    or because you run into one of the very rare problems where a cursor actually runs faster than a set-based solution

    Hi Hugo,

    Do you have an example of when...

  • RE: Updating through cursors

    Christian Buettner (7/24/2008)


    This is a misunderstanding. What I meant to say was that when you open a static cursor, you have a point in time copy of the data as...

  • RE: Updating through cursors

    Gianluca Sartori (7/24/2008)


    I agree that this question was a bit confusing. I would never have chosen the "right" answer just because this is not any way to update the cursor,...

  • RE: Updating through cursors

    Christian Buettner (7/24/2008)


    I find this question a little confusing. It should be clearly stated in the question that you do not need to see updates made to the underlying data....

  • RE: Updating through cursors

    brewmanz (7/24/2008)


    I used the following extract from BOL

    (...)

    Was it a fluke, or is it some indirect help from BOL? Or maybe direct help - cursors are a bit of a...

  • RE: References Permission

    There's a HUGE difference between "Allows the owner of another table to use columns in the table to which they've been granted that permission" (the supposedly "correct" answer to this...

  • RE: Sparse Columns

    Steve Jones - Editor (7/17/2008)


    However, I see the point, and I have corrected the URL as well as awarded points back.

    Thanks, Steve! 😀

Viewing 15 posts - 3,121 through 3,135 (of 3,347 total)