Forum Replies Created

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

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Fragmented index

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

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Fragmented index

    This also stands out as a point of interest:

    ...the next ID is provided by them and is always the next sequential number.

    Who is "them" and what programming mechanism are they...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Problem With Recursive CTE

    I took a shot at this one...see if this one works for you:

    IF OBJECT_ID(N'tempdb..#ProductAssembly ') > 0

    DROP TABLE #ProductAssembly ;

    GO

    --Create temp table for example

    CREATE TABLE...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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