Viewing 15 posts - 4,981 through 4,995 (of 15,381 total)
a4apple (5/7/2014)
May 7, 2014 at 10:04 am
homebrew01 (5/7/2014)
May 7, 2014 at 9:16 am
Lowell (5/7/2014)
WHERE 1 = CASE WHEN @p_flag = 1 OR moveFlag = 26
...
May 7, 2014 at 9:09 am
How about this?
SELECT [Columns]
FROM Test1 T1
INNER JOIN Test2 T2 ON T1.ID = T2.ID
WHERE CASE @p_flag
WHEN 1 THEN moveFlag = 26
ELSE moveFlag > 26 OR moveFlag < 26
END
Notice I modified...
May 7, 2014 at 8:46 am
homebrew01 (5/7/2014)
Could someone include the "how" and "why" that dynamic SQL is vulnerable to SQL injection ?
Well because of the datatypes presented here it really isn't vulnerable to sql injection....
May 7, 2014 at 8:38 am
SW Skeen (5/7/2014)
May 7, 2014 at 7:55 am
Jeff Moden (5/6/2014)
Sean Lange (5/1/2014)
The first and the biggest issue is this is wide open to sql injection.
In most cases, I'd strongly agree with you but... with two DATE, one...
May 7, 2014 at 7:19 am
fstop (5/6/2014)
May 6, 2014 at 2:17 pm
KGJ-Dev (5/6/2014)
May 6, 2014 at 1:26 pm
KGJ-Dev (5/6/2014)
Is it possible to select the rows based on the condition? as i said, i am planning to bringing 10000 records each.
where s.Rn > 10000 and s.Rn...
May 6, 2014 at 1:25 pm
bkmsmith (5/6/2014)
create table abc_test
(
id int
,runs int
,date1 datetime
)
;
insert into abc_test
(
id
,runs
,date1
) values
('24','1','2013-12-05 10:00:01.000'),
('24','2','2013-12-05 10:00:02.000'),
('25','1','2013-12-05 10:00:03.000'),
('25','2','2013-12-05 10:00:04.000'),
('25','3','2013-12-05 10:00:06.000'),
('26','1','2013-12-05 10:00:07.000'),
('26','2','2013-12-05 10:00:08.000'),
('27','1','2013-12-05 10:00:09.000')
;
SELECTT2.id
, [runs] = T2.MaxRuns
, T1.date1
FROMdbo.abc_test T1
INNER JOIN
(
SELECTid
, [MaxRuns]...
May 6, 2014 at 1:24 pm
jdasilva (5/6/2014)
In the example I am working on, I am polling the data for specific info for...
May 6, 2014 at 1:22 pm
jdasilva (5/6/2014)
May 6, 2014 at 12:10 pm
I had a feeling that was what you wanted. There is < 0.00% percent chance you will get this right. I don't mean any disrespect but you are trying to...
May 6, 2014 at 11:12 am
vamsye (5/6/2014)
result set
The problem is that we can't see your screen. We have no idea what you are trying to do.
In order to help we will need a few things:
1....
May 6, 2014 at 9:32 am
Viewing 15 posts - 4,981 through 4,995 (of 15,381 total)