Forum Replies Created

Viewing 15 posts - 4,936 through 4,950 (of 5,685 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...

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

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

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

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

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

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

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

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

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

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

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

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

  • RE: Burned Out?

    Stefan Krzywicki (11/15/2010)


    What kind of models?

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

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

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