Viewing 15 posts - 10,816 through 10,830 (of 15,381 total)
derek.colley (9/6/2012)
September 6, 2012 at 8:42 am
I'm not much of a dev guru so can't test this from an external application call, but I reckon it would be possible to fool a call to the SP...
September 6, 2012 at 8:26 am
Actually the functions in your where clause should not render nonSARGable as Derek suggested because it is not a row based call.
It is pretty hard to tell why the...
September 6, 2012 at 8:14 am
derek.colley (9/6/2012)
Jeff Moden (9/6/2012)
Try it. You'll find that it's not susceptible to injection because it's not being used in dynamic SQL.
Good point. You'd merely get the string inserted...
September 6, 2012 at 8:09 am
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
Viewing 15 posts - 10,816 through 10,830 (of 15,381 total)