Forum Replies Created

Viewing 15 posts - 991 through 1,005 (of 5,502 total)

  • RE: Getting accurate row count for a table

    mysearchresult (9/9/2011)


    USE Database_name

    GO

    SP_SPACEUSED 'yourschema.yourtablename'

    GO

    The above gives the number of rows and other information regarding the table. This is the faster way to see the number of commited rows in a...



    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: Another bug in SS?

    A ROLLBACK TRANSACTION only refers to the outermost transaction.

    Straight from BOL:

    It is not legal for the transaction_name parameter of a ROLLBACK TRANSACTION statement to refer to the inner transactions of...



    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: A design question

    Here's a scenario:

    customer has billing and shipping address A for shipment #1.

    Shipment #2 goes to billing addr A and shipping addr. B.

    Shipment #3 goes to billing addr C and shipping...



    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: A design question

    preciolandia (9/9/2011)


    Agreed to everything LutzM said. 🙂

    Even though I appreciate the support I reported the post as spam due to the advert list in the signature.



    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: Sequence creation

    SQLServerMS (9/9/2011)


    Can anybody provide the script for getting the sequence

    What sequence are you looking for?

    We've asked several times to clarify.

    Deleting/rephrasing old posts doesn't really help...

    Until we know what kind of...



    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: update xml field with new xml format

    So you're basically getting a new schema where you have to map existing data to?

    If that's the case I would request the new schema instead of an unknown XML structure...



    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: How can i read this XML

    You only need to reference the namespace in your query where it's actually used in the referenced XML element.

    Based on your sample data you can query the Attrbute without referencing...



    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: update xml field with new xml format

    It's confusing...

    One statement:

    Elements can be added, deleted or even the sequence can be adjusted within the xml. Only the values of need to be persist.

    Another statement:

    value...



    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: Sequence creation

    SQLServerMS (9/9/2011)


    that is what i required, can u tell me how i can achieve this in sql script

    What exactly do you mean by "that"?

    Is your goal to have about 4mill...



    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: Sequence creation

    notoriousdba (9/8/2011)


    LutzM,

    Ah, you're so right. I see it now. My mistake.

    No mistake. Just a different interpretation.:-D

    My whole chain of arguments is based on the sample data provided and might evaporate...



    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: A design question

    There's another option besides getting your boss to start reading up on Normalization:

    You could use your design approach (which I consider to be valid btw) and create views to present...



    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: Sequence creation

    notoriousdba (9/8/2011)


    E99999

    F00001

    ...

    FT9999

    FU0001

    ...

    FUB999

    FUC001

    ...

    FUCJ99

    What would be the next value in the sequence?

    Based on the description this would not be possible:

    F00001

    ...

    FT9999

    Instead it would be

    F00001

    ...

    ZT9999

    Otherwise the value before B00001would be AZZZZZ and not...



    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: Sequence creation

    If my assumption of the concept is correct, it doesn't really make much sense to add the effort of a customized sequence just to cover 4 x the numeric range...

    A...



    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: Sequence creation

    Jeff Moden (9/8/2011)


    ...

    Consider which letters may occur between ZA9999 and ZZZZZZ. You can spell some pretty offensive words with just the 5 letters. 😉

    Now, I realize that you...



    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: get number of days from two dates

    Ninja's_RGR'us (9/8/2011)


    LutzM (9/8/2011)


    I'm confused: you started a new thread after getting several replies on the other thread?

    (http://www.sqlservercentral.com/Forums/FindPost1171968.aspx)

    Why?

    Edit: Sorry, Remi. Didn't see your reply. :blush:

    I said, NO MORE REPLIES 😀

    Now you...



    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 - 991 through 1,005 (of 5,502 total)