Forum Replies Created

Viewing 15 posts - 151 through 165 (of 211 total)

  • RE: Finding Data

    If this is an assignment question, you've basically got one possible answer written down right here, but it's in natural English instead of the less natural English(-ish) of SQL.

    I want...

  • RE: WITH EXECUTE AS in Stored Procedure

    You only need explicit impersonate permissions if you're using it as a standalone statement (ie, not as part of a module declaration), or (IIRC) if you're leaving the context of...

  • RE: Using SELECT INTO a bad practice?

    The performance of the CTEs there isn't surprising to me given that there isn't much "work" for the engine to do. There's no statistics or indexes to play with, no...

  • RE: CPU and memory monitor

    It is indeed possible to connect perfmon to a remote machine, but it can be difficult to set up and isn't really necessary (as Steve already said, it has very...

  • RE: some process is suspended and some is blocked.

    Sorry, sqlservercentral seems to have crashed momentarily, hence the multipost.

  • RE: some process is suspended and some is blocked.

    At a guess, it looks like 138 could be doing an index rebuild (dbcc dbreindex). Open activity monitor > right click > details next time it happens. Perhaps your maintenance...

  • RE: some process is suspended and some is blocked.

    At a guess, it looks like 138 could be doing an index rebuild (dbcc dbreindex).

  • RE: Need to filter by date range...

    Hah, allow me to quote from my own blog post here...

    Certain aspects of formatting can easily be automatically changed to a user’s preference by the environment. Block indenting is perhaps...

  • RE: CPU and memory monitor

    If you use the MDW / PDC it will tell you a good amount of detail about expensive queries in addition to CPU and IO. If you want to specifically...

  • RE: Using SELECT INTO a bad practice?

    Interesting. Ever discovered a pattern for when they're fast or slow? I pretty much abandoned them a while ago, figuring it was just asking a bit too much of the...

  • RE: Using SELECT INTO a bad practice?

    SQL seems to have trouble with constructs like...

    with c1 as (...),

    c2 as (select ... from c1 ...),

    c3 as (select ... from c2 ...)

    ... etc. Fair enough too, I'd say.

    That's one...

  • RE: Need to filter by date range...

    Jeff Moden (6/12/2011)


    The Dixie Flatline (6/11/2011)


    That guy's about as useless as a varchar(1). -- Original

    I like that quote. Here's another one that I frequently use on managers...

    If you want...

  • RE: Need to filter by date range...

    Jeff Moden (6/12/2011)


    As a bit of a side-bar, find a good "indented" standard for formatting your code.

    I use someone's formatting as the first and fastest indicator of how mature their...

  • RE: Using SELECT INTO a bad practice?

    It's bad if it's unnecessary for performance.

    A lot of the time when I see select into temp tables I also see cursors processing those temp tables. In other words...

  • RE: CPU and memory monitor

    We found performance data collection to be very useful (aka management data warehouse), but be warned: it consumes heaps and heaps of disk space. I've restricted it to 2 days...

Viewing 15 posts - 151 through 165 (of 211 total)