Forum Replies Created

Viewing 15 posts - 181 through 195 (of 199 total)

  • RE: The Joy of Numbers

    What a useful trick, and definitely something I'll need to remember.

    However, I think the function has a bug.  When I put through either of the following...

    SELECT

  • RE: Check Your SQL Server Identity

    Gernerally speaking: don't use cursors.

    However, there are occasions where cursors *may* be faster (or of negligible difference) - these include STATIC cursors or a small number of iterations.

    But if you can...

  • RE: Question of the Day for 28 Jul 2006

    Literally, "no", that's not the case (to avoid thinking that LEFT JOIN + WHERE = INNER JOIN.)  It's just that with this *particular* example that is what happens.

    If you had...

  • RE: Question of the Day for 28 Jul 2006

    The "WHERE DATE bit" will filter the rows out.  Basically, NULL will not be in the date range and will be filtered out by the WHERE clause.

    You could try something...

  • RE: The Power Crisis

    Regardless of how many suppliers you have, if your switchboard blows up (as ours did recently) you won't get any power into the building at all.

    In short, there's a heap...

  • RE: Question of the Day for 28 Jul 2006

    Forgive my laymans terms (and someone could explain this better than I) but it has to do with the order that the SELECT, JOIN, FILTER and COUNT parts take place.

    If...

  • RE: Performance Tuning Stored Procedures

    I'm probably missing something here, but for @@CPU_BUSY BOL states that it "Returns the time in milliseconds ... that the CPU has spent working since Microsoft® SQL Server™ was last started." ...

  • RE: How many more Mondays until I retire?

    I use float as this is the same underlying data structure used to store datetime datatypes (something I picked up from SQLServerCentral but I have no supporting documentation so that's my...

  • RE: How many more Mondays until I retire?

    Why am I using the DATEADD and DATEDIFF functions here?

    They are used to remove time information! I want to be sure that only date information is used. So I set...

  • RE: Management Studio with SQL Server 2000

    There's a button in MgmtStudio as well, but you need to customise your toolbar and add it.  It's something of a large button, and it says quite clearly "Hide Results...

  • RE: Question of the Day for 08 Jun 2006

    "prof reading" should have been "proof reading"

    Sorry, I couldn't resist. 

  • RE: Is a Temporary Table Really Necessary?

    That wasn't an issue in this particular case.  Being an ad hoc process it is only going to be running once at any given time: in the production environment it...

  • RE: Is a Temporary Table Really Necessary?

    By "orphaned temp tables" I mean temp tables in tempdb that no longer have any connecting processes/sessions/etc.  I know they are dropped when the connection terminates, and when I first...

  • RE: Is a Temporary Table Really Necessary?

    I recently had a very similar situation: a bunch of other databases I was requried to perform the same (ad hoc) processing against.  My method (and I'd be interested in good/bad...

  • RE: Foreign Keys

    "Recently I came across a highly transactional DB with no FK's! The data integrity was managed by the front-end application."

    I've seen this also.  The ERP system was designed to...

Viewing 15 posts - 181 through 195 (of 199 total)