Viewing 13 posts - 1 through 13 (of 13 total)
One other method is declaring local variables, assigning them values from the parameters and then substituting the parameters with the local variables in the WHERE clause. This speeds up the procedure...
July 24, 2007 at 6:02 am
Thank you for the information. I think I will go for the multiple SELECT statements, one for each parameter rather than the recompile but the OPTION (RECOMPILE) will come in...
July 19, 2007 at 1:38 am
I agree with most of what is presented in this article. You can go over the top with naming conventions but this is about right IMHO.
The compound key constraint...
March 7, 2007 at 4:55 am
A very good article. The part about trust and respect is very true.
Not enough feedback about management is processed thoroughly both during and after an employee's tenure. And even...
January 16, 2007 at 2:04 am
I have been using SQLPrompt for a while and still like it. It doesn't always work but I've learnt to work around it. The slowness is usually just when you...
July 18, 2006 at 8:57 am
Maybe it's just me but I find the combination of the issues below make it unusable. I have reverted back to SQL2k QA after several thwarted attempts to use Man...
June 26, 2006 at 1:49 am
I've really enjoyed reading all of these posts and think that the article's title deserves 10/10 for marketing alone! The amount of information contained in the forum is fantastic. IMO...
January 30, 2006 at 4:44 am
I think if you use RAISERROR WITH LOG in your production stored procedures, users executing the procedure that aren't members of the sysadmin role will cause the procedure to fail...
November 23, 2005 at 3:45 am
You are getting prompted for sa because of the settings of the property CurrentProject.Connection.ConnectionString. This can be changed to use NT authentication using File - Connection. This always gets read...
October 5, 2005 at 7:29 am
Thanks for both of your comments. I've realised that the varchar option has a big impact on the row size in that if a column does actually contain a record with...
June 29, 2005 at 3:06 am
Think you may need to post some more information on exactly what you need but..
DECLARE @StartDate smalldatetime
DECLARE @EndDate smalldatetime
SET @StartDate = '2005-07-01'
SET @EndDate = '2005-07-04'
Date smalldatetime
IF NOT EXISTS (SELECT *...
June 28, 2005 at 7:14 am
Nik,
Your example doesn't include a default value and should read:
ALTER TABLE [T1]
ADD [Fish] INT DEFAULT(0)
The statement you wrote below is exactly the opposite of what actually happens. If you don't...
September 7, 2004 at 7:26 am
I agree with Sergiy on the indexes on datetime data types. These are just represented by integers anyway, aren't they? Is there a...
August 9, 2004 at 2:09 pm
Viewing 13 posts - 1 through 13 (of 13 total)