Forum Replies Created

Viewing 15 posts - 4,726 through 4,740 (of 10,144 total)

  • RE: Fastforward cursor and updlock

    Oh right - ok. In that case, I'll try to track down an excellent article which provides good evidence NOT to use built-in cursor updates but to do it manually...

  • RE: Recursion 100 has been exhausted

    Comment out the INTO as below:

    SELECT distinct *

    --INTO #RESULTS

    FROM pr_linked

  • RE: Recursion 100 has been exhausted

    hoseam (4/26/2013)


    with OPTION(MAXRECURSION 0) it just runs forever, I think I have aa circular loop somewhere and need to stop it, I just haven't found out yet how to.

    Set the...

  • RE: Fastforward cursor and updlock

    It's highly likely that the folks here can replace your cursor-based code with a fast, efficient and pretty set-based equivalent - why don't you post your code and let them...

  • RE: Recursion 100 has been exhausted

    OPTION(MAXRECURSION 0)

    100 is the default value. 0 = max limit.

  • RE: Deleting Rows in a table..

    faheemahmad14 (4/25/2013)


    I have a table like that

    MemberId(F.K) ! Event ! Event Date

    1 'Test Event1' "2012-03-20 05:39:51"

    1 'Test Event1' "2012-03-21 05:39:51"

    1 'Test Event1' "2012-03-22 05:39:51"

    3 'Test Event3' "2012-03-23 05:39:51"

    2 'Test...

  • RE: With or without DISTINCT ???

    John Mitchell-245523 (4/26/2013)


    Use DISTINCT when you want to eliminate duplicates from your result test. If you use it in an existence test, like you did in your original post,...

  • RE: Error converting varchar to numeric only in where clause

    mister.magoo (4/26/2013)


    Personally, for readability and your specific requirement, as long as you can guarantee the data type for PathIDs 30 and 31, then you can use this:

    select DataId, PathId, Value

    from...

  • RE: Complex many to many relationships

    L' Eomot Inversé (4/26/2013)


    ChrisM@Work (4/25/2013)


    What might you gain by putting phone numbers into a table separate from the entity (client, agent whatever) to which they belong?

    Maybe the entity owning the...

  • RE: Error converting varchar to numeric only in where clause

    Evil Kraig F (4/25/2013)


    Chris, as far as I know that's not bombproof. While under most circumstances the predicate will be filtered prior to the activation of the cross apply,...

  • RE: Complex many to many relationships

    Ganga-236835 (4/25/2013)


    Well, first they are not many to many then, and second it constrains the software development due to the inability for code reuse.

    This doesn't really address the point I...

  • RE: Complex many to many relationships

    What might you gain by putting phone numbers into a table separate from the entity (client, agent whatever) to which they belong?

  • RE: Recursive CTE

    Nice one, Geoff! Other than swapping around the sign on the hierarchy direction, it's bang on.

  • RE: Recursive CTE

    Try this...

    -- This CTE search for the linked client(child)--

    ;WITH pr_linked(CLIENT_ID, NAME, LINK_CLIENT_ID, [LEVEL])

    AS

    (

    SELECT CLIENT_ID, Name, LINK_CLIENT_ID, 1

    FROM #PR_LINK_INV_HST

    --WHERE LINK_CLIENT_ID = @CLIENT_ID

    WHERE CLIENT_ID = @CLIENT_ID

  • RE: how pick value from database on sql server2000?

    raghuldrag (4/25/2013)


    Hai friends,

    I m creating one sample application its has two dropdown boxes ddl1 and dd2

    if i choose dd1 in air

    ...

Viewing 15 posts - 4,726 through 4,740 (of 10,144 total)