Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)

  • RE: Performance of the SQL MERGE vs. INSERT/UPDATE

    I thought it was interesting that for the update test, the MERGE seemed to perform somewhat fewer reads and dramatically fewer writes. Even though the difference in elapsed time wasn't...

  • RE: Hard Data v Gut Feel

    One reason some managers operate on gut feel vs. data is that is many cases, you don't really have the data you need.

    Case #1: Not really understanding your metrics

    A call...

  • RE: Adjusting Model

    I adjust file locations, growth, and starting size. On development servers, I change the recovery model to SIMPLE. I also add a series of objects to model, mostly database-specific metadata...

  • RE: The Need for Auditing

    Where I work, we're not only interested in who changes data, we need to know who looks at it too.

    We try to monitor access by using stored procs as...

  • RE: Stairway to SQL Server Security: Level 2, Authentication

    Ah, you are correct, Tony.

    There is an Options box that lets you get to where you can select a database.

    The selection field is a combo box; clicking it to select...

  • RE: Stairway to SQL Server Security: Level 2, Authentication

    About the tip "Never leave the default database set to the master database."...

    I get where you are coming from; accidentally executing something in master is not fun.

    BUT also know this:...

  • RE: Using Max()

    A common pattern is when you want to pull the latest Exchange_Rates from the table.

    Before the windowed ranking functions, this was not much fun to write.

    This T-SQL will give you...

  • RE: Always Abstract

    I've always liked an "interface" approach, using stored procedures.

    If a developer needs to access customer information, you give them a "GetCustomer" stored procedure.

    This insulates them from the schema...

  • RE: orphaned users in sql server

    The most likely reason is no login named "Kumar" exists, so the [sp_change_users_login] proc can't successfully un-orphan the user.

    See if you have a login named 'kumar'. If not, create one...

  • RE: Hardware Hacking

    From a security standpoint, this is a very real concern!

    It's happening right now - remember the digital picture frames from China with malware pre-installed? It's not just government-based, either...

  • RE: Slow SP with date parameters solved.

    On the subject of parameter sniffing, here's a good article that describes how that works (and best of all, how it can go wrong!)

    http://www.sqlpointers.com/2006/11/parameter-sniffing-stored-procedures.html

  • RE: Slow SP with date parameters solved.

    I've run across this problem several times as well.

    I try copying the parameters into local variables, then use the local variables in the WHERE clause.

    That almost always fixes the...

  • RE: Balancing the Message

    I know my biggest complaint about advertising is how it forces its way in front of me, generally at the worst possible time. I'd say more than half the time...

  • RE: More Fun With NULL

    About the author's discussion of Option 5...

    "Option 5 is am especially delicious failure in that it looks just like the sucessful option 3, only using ISNULL instead of COALESCE. It...

Viewing 14 posts - 1 through 14 (of 14 total)