Viewing 15 posts - 1,126 through 1,140 (of 5,103 total)
The second query is a cross-join with two Where statements. That's standard.
I beg to differ. A comma is NOT an ANSI join, CROSS JOIN would be!
June 18, 2008 at 11:58 am
You could also see if your tables could benefit from table partitioning.
June 18, 2008 at 11:55 am
stephane3d (6/18/2008)
If I have an indexed view, should I get rid of any indexes on the table? Is the performance cost on the...
June 18, 2008 at 11:45 am
Joe Celko (6/18/2008)
June 18, 2008 at 11:03 am
stephane3d (6/18/2008)
No, I didn't consider that actually.Can an indexed view be faster than an index on the table itself?
Thanks
Stephane
If it has "pre"-aggregated data, you bet!!!
June 18, 2008 at 10:24 am
Try:
SELECT [Year], [Month] ,[Org1],[Org2],[Org3]
FROM
(SELECT U.Organization, R.Users , [Year], [Month]
FROM #Report R INNER JOIN #USERS U ON U.UserAlias = R.UserAlias) AS src
PIVOT ( SUM (Users)...
June 18, 2008 at 10:17 am
cast(a.im as varbinary(max)) = cast(b.im as varbinary(max))
Is not that bad, right ?
June 18, 2008 at 10:04 am
declare @jb_name nvarchar(128)
declare c cursor fast_forward for
select name from msdb.dbo.sysjobs
open c
fetch next from c into @jb_name
while @@fetch_status = 0
begin
print 'changing : ' + @jb_name...
June 18, 2008 at 8:38 am
indraprakash (6/18/2008)
Is there any thing like rowid in Oracle?How to delete duplicate records from SQL sever without using template table or create an extra column.
Can you post DDL for...
June 18, 2008 at 8:02 am
In addition to Gila's post you should check for missing indexes that may help reduce the number of scans.
June 18, 2008 at 7:56 am
stephane3d (6/17/2008)
Good idea.I tried and it says ยซ Estimated Improvement 0% ยป... That's a dead end I think! ๐
Did you try the "indexed view" idea ?
June 18, 2008 at 7:52 am
What version of the ODBC Driver are you using ?
June 17, 2008 at 3:36 pm
drodriguez (6/17/2008)
How about using BINARY_CHECKSUM?
FROM BOL:
... BINARY_CHECKSUM ignores columns of noncomparable data types in its computation. Noncomparable data types include text, ntext, image, cursor, xml, and noncomparable common language runtime...
June 17, 2008 at 3:33 pm
Or simply CAST to varbinary(max) and compare
declare @a table( id int, im image )
declare @b-2 table ( id int, im image )
insert into @a (id, im) values (...
June 17, 2008 at 3:30 pm
Hopefully your developers are not using select *... If that is not the case you can't do much ๐
June 17, 2008 at 3:09 pm
Viewing 15 posts - 1,126 through 1,140 (of 5,103 total)