Viewing 15 posts - 16 through 30 (of 188 total)
Here's what we do. My tables have an is_delete bit on them. When a record's is_delete bit is set on or off, a trigger cascades the is_delete bit...
May 27, 2010 at 10:06 am
Paul White NZ (5/27/2010)
Cascading DELETE with an action of SET NULL or SET DEFAULT
Right answer. 10 points.
May 27, 2010 at 9:03 am
declare @exp1 varchar(32) = 'username'
select SUBSTRING(@exp1,1,(LEN(@exp1) - 1))
--returns 'usernam'
declare @exp1 varchar(32) = ' '
select LEN(@exp1)
--returns 0
select SUBSTRING(@exp1,1,(LEN(@exp1) - 1))
--Msg 537, Level 16, State 2, Line 4
--Invalid length parameter passed...
May 24, 2010 at 12:55 pm
May 20, 2010 at 11:19 am
SELECT ColA = 'A'
into dbo.tbl_pk
UNION
SELECT ColA = 'B'
SELECT ColA = 'A', ColB = '1'
into dbo.tbl_fk
UNION
SELECT ColA = 'A', ColB = '2'
UNION
SELECT ColA = 'A', ColB = '3'
UNION
SELECT ColA = 'A',...
October 6, 2009 at 1:25 pm
Robert klimes (7/30/2009)
this is for default constraints thus there will always be a column associated with them.
exactly right. and just what i needed.
July 31, 2009 at 11:08 am
Bruce W Cassidy (2/4/2009)
[font="Verdana"]Would a pattern that says "not a period followed by a digit" work? (er, [^.0-9].) Regular expressions are always fun![/font]
Oh heck yeah I like that...
February 4, 2009 at 3:22 pm
Mark (2/4/2009)
see if this helps
declare @string varchar(30)
set @string = '$4.21 plus tax....'
select left(@string,1+len(@string)-patindex('%[^.]%',reverse(@string)))
Sweet Thanks!!!!!
February 4, 2009 at 12:28 pm
It was actually 421 lines of code. I went with a sproc and did as you said.
Thanks!
January 27, 2009 at 8:19 am
I figured it out! Right click on image and select "send to back".
December 3, 2008 at 12:46 pm
Oh and same thing goes for tasks in those daughters. You can force package failure in the tasks within the daughters and send mail from there I think?
November 24, 2008 at 5:06 pm
Did you go into the properties of the task and change FailParentOnFailure to TRUE? The default is FALSE.
HTH
November 24, 2008 at 5:04 pm
Viewing 15 posts - 16 through 30 (of 188 total)