Forum Replies Created

Viewing 15 posts - 6,316 through 6,330 (of 7,168 total)

  • RE: Problem With Recursive CTE

    OK, had to add another layer in the form of a iTVF and then use CROSS APPLY. See if this setup works for you:

    IF EXISTS ( SELECT *

    ...

  • RE: Problem With Recursive CTE

    What is the expected result from this new set of test data please?

  • RE: Problem With Recursive CTE

    Are you getting an error by chance or just wrong results? If you post some sample data that demonstrates why it is not working I'll try to take another look...

  • RE: Fragmented index

    zach_john (5/26/2011)


    Ninja's_RGR'us (5/25/2011)


    I'm no SSIS guru but I know this for sure, you can commit the whole process in batches and unless you specifically ask for an ordered insert you...

  • RE: Powershell job run through SQL agent doesn't write output

    Judy Scheinuk (5/25/2011)


    I don't really know how to use the try/catch loop

    try/catch is not a form of a loop...it's an exception handling structure. I prefer it over using traps because...

  • RE: Fragmented index

    Hmm...running out of ideas...

    Are the 3-byte "table prefix char(15)" always used in a sequential order? i.e. Could you possibly load a batch with a prefix of "xyz" before a batch...

  • RE: Fragmented index

    Ninja's_RGR'us (5/25/2011)


    opc.three (5/25/2011)


    Ninja's_RGR'us (5/25/2011)


    Also the LEADING part of the key is a prefix, NOT a date, NOT a sequential GUID. So that alone can cause that much fragmentation.

    The only...

  • RE: Fragmented index

    Ninja's_RGR'us (5/25/2011)


    Also the LEADING part of the key is a prefix, NOT a date, NOT a sequential GUID. So that alone can cause that much fragmentation.

    The only real "identity"...

  • RE: Fragmented index

    OK...so much for that...

    What about Ninja's thought...are the rows being updated in the table after they are initially inserted?

  • RE: trace?

    Lowell (5/25/2011)


    opc.three (5/25/2011)


    Just eyeballing your code so forgive me if this is a rabbit hole but I think if client_net_address is NULL then you end up with something that will...

  • RE: Fragmented index

    Ninja's_RGR'us (5/25/2011)


    opc.three (5/25/2011)


    The idea of having an app generate a sequential GUID outside the database and provide it to SQL Server as the clustering key for a table is great...

  • RE: Fragmented index

    <mini_rant>The use of GUID for this entity is a misnomer in the context of Microsoft SQL Server so I am calling them IDs from now on because the terminology is...

  • RE: trace?

    Just eyeballing your code so forgive me if this is a rabbit hole but I think if client_net_address is NULL then you end up with something that will anger most...

  • RE: Fragmented index

    The idea of having an app generate a sequential GUID outside the database and provide it to SQL Server as the clustering key for a table is great on paper...but...

  • RE: Fragmented index

    Agreed, and it will be exacerbated due to the 100% fill factor.

Viewing 15 posts - 6,316 through 6,330 (of 7,168 total)