Forum Replies Created

Viewing 15 posts - 6,151 through 6,165 (of 7,164 total)

  • RE: programmatically dropping a default one constraint when there are more than one

    hxkresl (6/9/2011)


    cte.three, please give me the main points about using ctes rather than cursors.

    In general it's not about always using a CTE over CURSOR...the main point to take away is...

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

  • RE: Are the posted questions getting worse?

    Jim Murphy (6/9/2011)


    GilaMonster (6/9/2011)


    SQLRNNR (6/9/2011)


    Steve Jones - SSC Editor (6/9/2011)


    Just an FYI, those of you that posted in the "real world financial problem", I whacked the thread. No replies or...

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

  • RE: Shown up by a developer

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


    How can you defrag a heap that has no required order?

    Tangent to the OP but since you asked: ALTER TABLE...REBUILD or you can add a CI and then immediately...

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

  • RE: Shown up by a developer

    Since it is a heap, and you were deleting from it every 5 minutes (and I assume something else was inserting into it just as often) it could have been...

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

  • RE: Combining multiple rows of data into one row

    James A. Lawrence (6/9/2011)


    Thanks to all for your input on this!

    I actually was able to find yet one more way to get this to work!

    select distinct

    t1.A_PREFIX,...

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

  • RE: programmatically dropping a default one constraint when there are more than one

    hxkresl (6/9/2011)


    Yes, I see how that would work. I am sticking with my cursor based script because it is strictly an administrative task, but I appreciate knowing about this...

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

  • RE: nodes and xml

    @Offices.nodes('/Offices/OfficeID', '/Offices/OfficeID/PracticeID')

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

  • RE: XML,XSD and XSL usage in ssis

    kiruthika.naren (6/8/2011)


    2. How to get the base XSD for all the 3 files.

    If these files are sent for a business purpose it would be best to ask the source for...

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

  • RE: Insert loop

    That will still require another access to the base table. There is a way to do it without touching the table again, and we know the query he shared is...

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

  • RE: Simple Join taking too much time

    BOL says you can partition a heap...not that anyone would, would they? Uggh.

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

  • RE: event notifications

    Profiler will generate a lot more data than you need. You could load your trace files into a table as needed and delete what you do not need however that's...

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

  • RE: programmatically dropping a default one constraint when there are more than one

    I am confident the original query could be fixed but here is the cte with the query you just provided. The downside is that it only handles default constraints. It...

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

  • RE: Error 18452, I've searched high and low and I'm stumped

    Oh, it's a command line tool 😀

    It's a good one to keep in your toolkit for troubleshooting these kinds of issues. Sometimes the network folks unintentionally get involved and break...

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

  • RE: Error 18452, I've searched high and low and I'm stumped

    :w00t: I'll add it to the list of things to try as a last resort when I see these issues come up...and they do come up regularly. Thanks for posting...

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

  • RE: Error 18452, I've searched high and low and I'm stumped

    kurtyue (6/9/2011)


    @opc.three - Server 1 is a named instance. SQL Browser is running. Tried PortQryv2 but it wouldn't run for some reason. Workstation1's client matches Server1 perfectly,...

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

Viewing 15 posts - 6,151 through 6,165 (of 7,164 total)