Viewing 15 posts - 31 through 45 (of 303 total)
Paul & Seth -- Thanks so much for your help!
May 5, 2010 at 7:56 am
Paul White NZ (5/3/2010)
Goldie Graber (5/3/2010)
May 3, 2010 at 10:24 am
Paul White NZ (5/1/2010)
Garadin (4/30/2010)
May 3, 2010 at 9:08 am
Thanks for your help.
This solution won't work for me, I have multiple columns with these requirements and that would cause the trigger to be very complex.
April 30, 2010 at 6:50 am
sturner (4/28/2010)
Students that need to loose weight should have a NULL lunch period.
:hehe::hehe:
April 28, 2010 at 3:59 pm
Lowell (4/28/2010)
,LunchPeriod INT DEFAULT(4) ...
April 28, 2010 at 11:45 am
Lowell (4/28/2010)
SELECT '10-B', NULL
which i changed so it would work; i was kind of...
April 28, 2010 at 11:23 am
sturner (4/28/2010)
1) check for null and use a 3 value insert statement if it is null, else insert 4 values.
2) select the column default value...
April 28, 2010 at 11:22 am
Lowell (4/28/2010)
how about selecting from the @Class table?
INSERT INTO @Student(FirstName, LastName, ClassID, LunchPeriod)
SELECT 'John', 'Smith', @ClassID, isnull(@LunchPeriod,LunchPeriod) from @Class where ClassId = @ClassID
I can't get this to work? When I...
April 28, 2010 at 11:17 am
I'm looking for a way to do it without hard-coding the column defaults.
This way, if the column default changes, the new records would be correct.
April 28, 2010 at 9:22 am
Thanks for the excellent article! Clear and concise!
Providing sample code with extra examples was a perfect way to provide more information, without cluttering the main article.
I've never actually used APPLY...
April 16, 2010 at 12:32 pm
lmu92 (3/15/2010)
DECLARE @OutlineNumber VARCHAR(1000)
SET @OutlineNumber= '.I.A.1.b.'
SELECT STUFF(SUBSTRING(@OutlineNumber,1,CHARINDEX('.',@OutlineNumber,N+1)),1,1,'')
FROM dbo.Tally
WHERE N < LEN(@OutlineNumber)
AND SUBSTRING(@OutlineNumber,N,1) = '.'
The variable needs to have a...
March 16, 2010 at 10:19 am
Thanks to both of you for your help!
Paul, why do you say your second query is better?
March 9, 2010 at 11:41 am
Thanks for the excellent article!
You did a terrific job explaining a complex topic in simple terms.
The graphical explanations were also very helpful.
I will be passing this one on as...
March 5, 2010 at 7:42 am
Thanks for your help.
I will do the performance testing when I have some free time, and post the results up here.
January 27, 2010 at 7:24 am
Viewing 15 posts - 31 through 45 (of 303 total)