Forum Replies Created

Viewing 15 posts - 5,836 through 5,850 (of 10,144 total)

  • RE: T-SQL String Manipulation- Need help

    Cadavre (8/22/2012)


    ChrisM@Work (8/22/2012)


    SELECT

    Stringy,

    Stuffy = STUFF(STUFF(STUFF(Stringy,x3.startpos+1,x3.endpos-x3.startpos-1,'n'),x2.startpos+1,x2.endpos-x2.startpos-1,'n'),x1.startpos+1,x1.endpos-x1.startpos-1,'n')

    FROM (SELECT Stringy = 'A1(1).B22(10).C345(100)') d

    CROSS APPLY (SELECT startpos = CHARINDEX('(',Stringy,1), endpos = CHARINDEX(').',Stringy+'.',1)) x1

    CROSS APPLY (SELECT startpos = CHARINDEX('(',Stringy,x1.startpos+1), endpos = CHARINDEX(').',Stringy+'.',x1.endpos+1)) x2

    CROSS...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (8/22/2012)


    GilaMonster (8/22/2012)


    jcrawf02 (8/22/2012)


    GilaMonster (8/22/2012)


    BrainDonor (8/22/2012)


    GilaMonster (8/22/2012)

    Nitpicking I can take, this is getting well beyond that.

    I have to say Gail that it was a fascinating thread up to a...

  • RE: T-SQL String Manipulation- Need help

    SELECT

    Stringy,

    Stuffy = STUFF(STUFF(STUFF(Stringy,x3.startpos+1,x3.endpos-x3.startpos-1,'n'),x2.startpos+1,x2.endpos-x2.startpos-1,'n'),x1.startpos+1,x1.endpos-x1.startpos-1,'n')

    FROM (SELECT Stringy = 'A1(1).B22(10).C345(100)') d

    CROSS APPLY (SELECT startpos = CHARINDEX('(',Stringy,1), endpos = CHARINDEX(').',Stringy+'.',1)) x1

    CROSS APPLY (SELECT startpos = CHARINDEX('(',Stringy,x1.startpos+1), endpos = CHARINDEX(').',Stringy+'.',x1.endpos+1)) x2

    CROSS APPLY (SELECT...

  • RE: Update table based on column grouping

    DerbyNeal (8/22/2012)


    Thanks Luis & Dwaine for your help.

    Dwain - I Don't need to cater for that, as the table query is refreshed each day (It is a snap-shot query).

    It...

  • RE: UPDATE when the values are the same

    SQL Kiwi (8/22/2012)


    ChrisM@Work (8/22/2012)


    Updating a clustered index key causes a delete/insert to the table and updates any non-clustered indexes to reflect the new key. And whatever else. That's a lot...

  • RE: UPDATE when the values are the same

    SQL Kiwi (8/22/2012)


    ChrisM@Work (8/16/2012)


    It's interesting that in only the cheapest case has update to self been optimized out. Perhaps checking for change in a LOB column is more expensive than...

  • RE: Are the posted questions getting worse?

    GilaMonster (8/22/2012)


    Yes, same one, and it's the thread with Paul involved.

    "But it's not the only target people could chase with the statement, would you agree?"

    Strange way to elicit a...

  • RE: Are the posted questions getting worse?

    dwain.c (8/22/2012)


    ChrisM@Work (8/22/2012)


    dwain.c (8/22/2012)


    ChrisM@Work (8/22/2012)


    If this is the same individual as last time

    He who must not be named...

    Between wizards and Jedi, this board is always interesting and fun... 🙂

    Dwain,...

  • RE: Need Create View Script for all tables

    Ankur Bajaj (8/22/2012)


    ... This is so as not to affect database performance for App users....

    Absolute nonsense. If you must do it, then don't do it for this reason.

  • RE: Are the posted questions getting worse?

    dwain.c (8/22/2012)


    ChrisM@Work (8/22/2012)


    If this is the same individual as last time

    He who must not be named...

    Between wizards and Jedi, this board is always interesting and fun... 🙂

    Dwain, that monster...

  • RE: Are the posted questions getting worse?

    GilaMonster (8/22/2012)


    Grrr. Why do some people want to nitpick holes in things I say and do it in a way that sounds very much like a personal attack?

    If this is...

  • RE: Today's Random Word!

    SQLRNNR (8/21/2012)


    Warble

    Wobble

  • RE: Will indexed view help this query?

    S_Kumar_S (8/21/2012)


    But the results of this and previous query doesn't match. Seems ordering on different column changed the results.

    The results will differ if any of the DIM... tables introduce more...

  • RE: Improving query performance to detect first duplicate

    Sales 1 and 2 overlap on date range and have a common item & location.

    Same with 2 and 5. But 1 and 5 don't overlap: 1, 2 & 5 aren't...

  • RE: Today's Random Word!

    Ray K (8/21/2012)


    ChrisM@Work (8/21/2012)


    rhythmk (8/20/2012)


    Cliff Jones (8/20/2012)


    Scott D. Jacobson (8/20/2012)


    SQLRNNR (8/20/2012)


    Ray K (8/20/2012)


    Manic Monday

    The Bangles

    Susanna Hoffs and Matthew Sweet.

    Ming Tea

    Green Tea

    Green Day

    Green Bay

    Bay City Rollers

Viewing 15 posts - 5,836 through 5,850 (of 10,144 total)