Viewing 15 posts - 5,611 through 5,625 (of 8,415 total)
The query will perform well if written correctly 😉
Plan produced from the following test rig and query:
--
-- Test table
--
DROP TABLE #CourtHearing;
GO
CREATE TABLE #CourtHearing
...
March 9, 2010 at 5:44 am
See Using Partitioned Views. Note carefully the need for trusted, enabled CHECK constraints, and the use of UNION ALL - not UNION.
March 9, 2010 at 4:04 am
chaitu_ece2000 (3/9/2010)
Since I am on standard edition, I am planning to split the table in to 5 tables with 10 Million each and create a view on top of it.
chaitu_ece2000...
March 9, 2010 at 4:02 am
Can anyone else hear that high-pitched whining sound in here? 😛 😉 😀
March 9, 2010 at 3:34 am
Ionut Hrubaru (3/9/2010)
March 9, 2010 at 3:19 am
Ionut Hrubaru
March 9, 2010 at 2:51 am
Ionut,
I have ignored point 1 for the moment, since your response was based on an incorrect assumption.
Your original comments in black. My response in blue...
If no rows are aggregated,...
March 9, 2010 at 2:41 am
Ionut,
You misread my post. I am saying that your aggregate will throw an exception in the Read method if no rows have been aggregated. This is different from...
March 9, 2010 at 2:20 am
Seems safe to me. I can't help but wonder why you need to know, though.
March 9, 2010 at 12:39 am
CirquedeSQLeil (3/8/2010)
Sorry, I was lost :hehe:
Now you have it! Though, to be fair, that thread is not the best example...not by a long way.
":hehe:" really grates on me now....
March 9, 2010 at 12:14 am
My suggestion would have been:
DECLARE @T
TABLE (
RowNumber BIGINT PRIMARY KEY,
...
March 9, 2010 at 12:12 am
If the ALTER statement results in a huge number of physical changes (not always the case) which must be logged (always), it can sometimes be faster to bulk export the...
March 9, 2010 at 12:00 am
You are receiving that error because that library is not safe to use within the SQL Server hosted environment.
Perform the conversion outside SQL Server.
March 8, 2010 at 11:53 pm
It's not that I mind people having a go - that's great! It just irks me when the post sounds so authoritative, when it is clearly a pile of...
March 8, 2010 at 11:38 pm
There are still a few bugs to be worked out in that code:
The Write method does not write anything if the aggregate is empty. The Read method will still...
March 8, 2010 at 11:33 pm
Viewing 15 posts - 5,611 through 5,625 (of 8,415 total)