Forum Replies Created

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

  • RE: Priority based selection from SQL JOIN

    The answer is Zero. 😀

    First part:

    I have to select all the fields that are not NULL from T3.

    Except the fact that we don't really have "fields" (that's more a...

  • RE: count() or group by or nested select?

    Something like this?

    select patient.dbpatcnt as id,

    COUNT(*) as cnt,

    COUNT(patient.dbpatcnt) OVER (PARTITION BY...

  • 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...

  • 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...

  • 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...

  • 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.

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

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