Viewing 15 posts - 541 through 555 (of 1,825 total)
I believe the difference here is in the hash match operation , in your version it is matching on 2 columns and in Jeff's 1 column.
Hash matching is a comparatively...
November 15, 2010 at 2:40 am
WayneS (11/12/2010)
I assume you mean with the OPTION (RECOMPILE) hint? Sure did.
Doesnt this just completely negate any advantage of table vars though ? .
The main reason to use...
November 12, 2010 at 9:15 am
This is why the design is so bad....
Untested , you will have to account for the other columns you need
Declare @SqlString varchar(max)
Declare @CaseStmt varchar(max)
Declare @Upvt ...
November 12, 2010 at 7:24 am
There is no neat way to do this, the design is bad.
Possibly the easiest way is to build a dynamic sql string by testing for the incrementing column group...
November 12, 2010 at 7:00 am
First off , you are using a table variable here not a temporary table.
The table is being destroyed and recreated on each call so its not suprising your data is...
November 12, 2010 at 4:49 am
Another Option
Select Id,DateTime,
case when RowN = 1 then TagA
when Rown...
November 12, 2010 at 4:36 am
Can you be any more specific than "some times" ?
All the aggregate functions now support the partition by clause , in this case we dont want to partition so i...
November 8, 2010 at 7:01 am
Something like this ?
declare @t table
(
id int ,
Class varchar(20)
)
insert into @t
select 1, 'ADS' union
select 2, 'ggS' union
select 3, 'dS' union
select 4 , 'hhf'
select *,count(*) over (partition...
November 8, 2010 at 6:38 am
Henrico Bekker (11/8/2010)
does this qualify?http://www.sqlservercentral.com/Forums/Topic1017057-391-1.aspx?Update=1
Team viewer!!! Gone beyond the realms of tell me how to do my work , to ACTUALLY do my work.
November 8, 2010 at 3:36 am
" and you need the full fix now, please contact customer support".
Sounds like it is fixed, but in a hotfix. Might be worth taking them up on this offer...
November 5, 2010 at 4:59 am
November 4, 2010 at 5:23 am
The 'reads' value is the number of 8k pages read not the number of rows.
November 4, 2010 at 2:10 am
That should be in an if statement,
It doesnt reference ANY table data
November 3, 2010 at 10:31 am
Not only that but the nested UDF of fnGetValueAndType , could be doing a monstrous amount of work too.
November 3, 2010 at 7:01 am
Viewing 15 posts - 541 through 555 (of 1,825 total)