Viewing 15 posts - 151 through 165 (of 395 total)
December 17, 2012 at 10:04 am
-- Test data:
declare @a as table
(
row1 int,
row2 int,
row3 int,
row4 int
);
insert @a values (0,6,0,0);
insert @a values (0,0,30,0);
insert @a values (4,0,0,0);
insert @a values (0,0,0,18);
--select * from @a;
-- Example solution:
select
max(case when row1...
October 27, 2012 at 7:52 am
crookj (10/25/2012)
Daniel Bowlin (10/25/2012)
logicSpock
Klingon
October 25, 2012 at 1:02 pm
eugene.pipko (10/3/2012)
I don't use SSIS.
Not sure if it makes sense, but I was hoping to place the check for number of rows in table A (function call...
October 3, 2012 at 1:44 pm
Visual Studio 2010 & SSDT Database Compare makes this very easy - if you're using it.
October 3, 2012 at 9:27 am
Cliff Jones (10/3/2012)
rhythmk (10/2/2012)
jasona.work (10/2/2012)
SQLRNNR (10/2/2012)
BasterTurkey
World War
Cold War
Iron curtain
October 3, 2012 at 8:35 am
Zeal-DBA (10/3/2012)
October 3, 2012 at 8:26 am
Which rows as columns & columns as rows?
You could post your expected results & what you've done so far. This might get a better answer.
October 3, 2012 at 8:00 am
Do you mean like this?
--========== TEST DATA ==============
declare @a as table
(
id int,
name varchar(50),
description varchar(50),
created_timestamp datetime,
created_userid char(3),
modified_timestamp datetime,
modified_userid char(3),
display_order int,
driver_type int,
application_id int,
formula...
October 3, 2012 at 7:54 am
Zeal-DBA (10/3/2012)
hmmm thats what i expected, its a great idea... it definitely shows index seek, but practically it really improves performance or it just shows index seek???
Generally, index seeks are...
October 3, 2012 at 5:45 am
Zeal-DBA (10/3/2012)
suppose i am using select queries like this frequently
select * from T where id =6
select * from T where ch ='!'
select * from T where na ='sue'
so...
October 3, 2012 at 5:44 am
No they're not the same.
The first will allow seeking on all 3 columns, while the second will only allow seeking on id - although the optimiser may still...
October 3, 2012 at 4:49 am
How about making the second job step script check the table with COUNT(*) & return if the table is not empty.
If you need to wait between steps 1 & 2,...
October 3, 2012 at 4:17 am
That's up to the optimiser. If it decides there's no benefit in using an index, it won't use it.
October 3, 2012 at 4:10 am
Viewing 15 posts - 151 through 165 (of 395 total)