• Paul White (3/12/2010)


    Grant Fritchey (3/12/2010)


    And when you make the query into a procedure as Paul says, make the parameters NOT NULL and the users will have to supply them.

    Good point Grant - though I think you mean 'do not specify a default value'. 🙂

    Yeah, that's the much more correct way to phrase it, of course.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning