Forum Replies Created

Viewing 15 posts - 4,936 through 4,950 (of 5,678 total)

  • RE: Using results of an EXCEPT query

    Ran into the same problem myself tinkering with EXCEPT. No, it's not going to do what you want, it can't completely replace LEFT JOIN t ON x/y WHERE t.x...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: What other ways is there to do this?

    Digs (11/15/2010)


    I get round this buy using a #temp table, but it seams this is not wise on a select statement that is very active ( ie behind a blog),...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: top without using TOP

    Learner1 (11/15/2010)


    thanks ,,,,,,,no it's not a home work

    its again an interview question but I got an answer already...

    this can be done using a corelated query

    SELECT DISTINCT (a.age) FROM test55...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: HEAP Pages not released after table delete (HELP!)

    Lowell (11/15/2010)


    wow, so even if you were to drop the table itself in the original database, the space will not be recovered? is that right?

    Apparently, no. It's documented here...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Insert with Loop

    GrassHopper (11/15/2010)


    I want to create a temp table that I can use for my subquery in my loop, so that I don't have to run it 3 times for my...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Really? Then how? (Rant/Vent)

    Michael Valentine Jones (11/15/2010)

    That's good, as long as they don't actually decide to go out and buy a cheap laptop to replace the server. :crying:

    "So, that's your blade server?...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Table Maintenace stored procedure

    Remove the GO after the Drop Table statement. It ends the batch.

    If you want an in-proc terminator, use ;

    It's not necessary here though.

    Go forces the following script to happen...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: HEAP Pages not released after table delete (HELP!)

    paul.olson.dba (11/15/2010)


    Craig Farrell,

    In the back of by head I thought that migrating to an empty db would be the last resort but it is looking like this is my only...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: To calculate the delta difference in same table

    Well, since you showed your work this will be easy to help get you back on track.

    T2512 (11/15/2010)


    select

    A.studentid

    , A.[year] ,

    b.[year],

    a.avgpmtamt,

    B.avgpmtamt

    , (B.avgpmtamt-A.avgpmtamt)/ B.avgpmtamt as change

    This is a...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: HEAP Pages not released after table delete (HELP!)

    I've seen this before. It's not pretty, and you're going to need downtime to fix this if it's production.

    For whatever reason, 2k5 and LOBs don't play nicely. It...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: bottleneck in I/O

    To add to what Roy said, and he's right, that just means it's more expensive data wise than it is computationally, there's a few other things you need to see.

    No...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Burned Out?

    CirquedeSQLeil (11/15/2010)


    WayneS (11/15/2010)


    Craig Farrell (11/15/2010)


    your girlfriend no longer remembers if you prefer meat sauce on the Italian food.

    Now, just need to find a new girlfriend who actually CARES what sauce...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: HEAP Pages not released after table delete (HELP!)

    Might sound odd, but was the table filled with LOB data?

    Example datatypes: text, VARCHAR(max), XML...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Burned Out?

    Stefan Krzywicki (11/15/2010)


    What kind of models?

    I'm a geek... Warhammer40k. 😀 (The Tyrannid shall EAT you!)


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: simple delete statement

    wannalearn (11/15/2010)


    Thank you for your reply. Per your advice,

    I created

    DELETE ABCDEF FROM dbo.XYZ

    WHERE Column = 'ABCDEF100'

    want to delete ABCDEF AND LEAVE 100 IN THAT COLUMN

    Plz help me create statement for...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

Viewing 15 posts - 4,936 through 4,950 (of 5,678 total)