Viewing 15 posts - 10,816 through 10,830 (of 15,376 total)
derek.colley (9/6/2012)
If not,...
September 6, 2012 at 7:53 am
ScottPletcher (9/5/2012)
It doesn't need a trigger because the data doesn't change, it just needs to be cleaned up.
But the trigger DOES the clean up, which guarantees that (1) it occurs...
September 6, 2012 at 7:10 am
ariel_mlk (9/5/2012)
Thanks for the input ! i'll get that done by tomorrow and come back to buzz you guys again =)
hopefully i'll improve the procedure more than i expect it...
September 5, 2012 at 3:33 pm
ScottPletcher (9/5/2012)
Sean Lange (9/5/2012)
To me that is vastly better than using LTRIM/RTRIM on all subsequent queries!
You certainly have a valid point. Not sure that adding an insert/update trigger on every...
September 5, 2012 at 3:20 pm
ariel_mlk (9/5/2012)
No offense taken at all ! right now the procedure that i copied here is the only one that uses it, i just did some copy paste of existing...
September 5, 2012 at 3:18 pm
L' Eomot Inversé (9/5/2012)
Lynn Pettis (9/5/2012)
Brandie Tarvin (9/5/2012)
Lynn Pettis (9/5/2012)
Brandie Tarvin (9/5/2012)
Lynn Pettis (9/5/2012)
Really finding it painful to not respond to jc and his responses, but I'm trying not to.
Have...
September 5, 2012 at 3:11 pm
To me that is vastly better than using LTRIM/RTRIM on all subsequent queries!
You certainly have a valid point. Not sure that adding an insert/update trigger on every table is the...
September 5, 2012 at 3:09 pm
ariel_mlk (9/5/2012)
ALTER FUNCTION [dbo].[SplitString]
(
@String VARCHAR(MAX),
@Delimeter Char(1)
)
RETURNS @RtnValue TABLE
(
Value VARCHAR(100)
)
AS
BEGIN
DECLARE @Cnt INT
SET @Cnt = 1
WHILE (CHARINDEX(@Delimeter, @String) > 0)
BEGIN
INSERT INTO @RtnValue (Value)
SELECT
Data = ltrim(rtrim(Substring(@String,1,Charindex(@Delimeter,@String)-1)))...
September 5, 2012 at 2:39 pm
ariel_mlk (9/5/2012)
Sorry to not have posted that back in the first post, as i stated I though I was missing something obvious enough to discard ddl, i editted it...
September 5, 2012 at 1:39 pm
It all comes down to want you want to do. You discussed a few things but never really said what you want to do. The best thing you can do...
September 5, 2012 at 1:30 pm
RBarryYoung (9/5/2012)
Why on earth would you even want to do this? If a #temp still exists, it's because...
September 5, 2012 at 1:21 pm
qur7 (9/5/2012)
September 5, 2012 at 1:14 pm
You should use a trigger to trim the data during INSERTs and UPDATEs
[/quote]
I don't think I agree that you should just add a trigger to trim spaces but we can...
September 5, 2012 at 12:55 pm
what first querie does is a like on Hierarchy column, what mine does is a rcte from ID to ParentID pretty much like BOL examples... what I really don't understand...
September 5, 2012 at 12:25 pm
ariel_mlk (9/5/2012)
Thanks for the responses, I'm sorry i don't think i was clear enough, what I have is something like
ID ...
September 5, 2012 at 12:20 pm
Viewing 15 posts - 10,816 through 10,830 (of 15,376 total)