Forum Replies Created

Viewing 15 posts - 1,771 through 1,785 (of 5,502 total)

  • RE: Speeding up weekend maintenance

    Ninja's_RGR'us (3/11/2011)


    Actually it doesn't :w00t::w00t::w00t::w00t::w00t::w00t::w00t::w00t::w00t::w00t:

    Easy fix: the line break < br > is part of the link. Remove it from the end of the link to see the secret information...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Creating nested xml tree

    After a second look at your query the reason might be the accidential cross join due to

    ON PortfolioGroup.entity_id = PortfolioGroup.entity_id

    that might better be

    ON Portfolios.entity_id = PortfolioGroup.entity_id



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Creating nested xml tree

    The error message tells you exaclty what the problem is: you're trying to create an XML structure that exceeds 2GB.

    Are you sure you want to create such a large XML...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Varchar to datetime

    Something like this?

    SELECT CONVERT(CHAR(10),Tablename.Logindate,110) + ' ' + CONVERT(CHAR(8),Tablename.Logindate,108)



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Enforce Where clause on every update statement

    Also, the WHERE-clause-check trigger would need to cover WHERE 1=1, too.

    I actually like your last approach, Gianluca. Instead of trying to analyze the code, check for the number of affected...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Row Locks and Transaction

    Narayana_17 (3/10/2011)


    Hi can you tell how to use set locks .

    Possible explain with an example please.

    Thanks

    Lakshman

    ???

    I'm talking about a set based sql code solution.

    Think of the task that needs to...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Parse delimited string into XML data

    Please describe the rules how to assign an XML tag name to a specific value.

    The way it seems like it is designed: the data are inserted based on the "position"...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: giving error for the calculation

    GSquared (3/9/2011)


    krishusavalia (3/9/2011)


    Hey G ,

    Your solution is awesome. It was interesting and i learn something new.

    But in my senario, I have more than 2 million rows and for every row...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Row Locks and Transaction

    Since you're trying to lock a specific row my guess is you're using a c.u.r.s.o.r. or any other kind of loop to process your data.

    If that's the case, you should...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Identify Parameter sniffing

    All I can recommend is to read Gails great blog series[/url].

    But I'm not sure if it's really a parameter sniffing issue (usually it would run fast the first ime and...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Help - cross tab / pivot - updating data

    @pverma,

    if you start a new thread with the very same issue as posted in an earlier thread, you could at least mention it, so people trying to help will know...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Non-Clustered Indexes - Need some advice

    Ninja's_RGR'us (3/7/2011)


    ...

    Another option I've use with worked well was to do a left join on both tables and then check the true/false useing isnull or a case for a more...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: giving error for the calculation

    krishusavalia (3/7/2011)


    Thanks Lutz

    My Query is going more that 10 layer down in herarchy. and If i made sample query then its useless.

    I can't post the real query. It has company's...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Non-Clustered Indexes - Need some advice

    After some reformatting I figured the both queries used in the UNION statement are pretty much identical except for the join to BatchKeg and Keg and the ch.FlexTank = 'true'/'false'...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: giving error for the calculation

    Please provide table def and sample data of the source table as described in the first article refernced in my signature. Also, please post your expected result based on your...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 1,771 through 1,785 (of 5,502 total)