Viewing 15 posts - 976 through 990 (of 8,416 total)
Jason Selburg (1/25/2012)
Yeah, that's what I meant Paul. 🙂
:laugh: By the way, it's not often code produces a 'whoa!' reaction from me.
January 25, 2012 at 7:25 pm
Jeff,
In my experience, BOL is a bit optimistic here. In "Databases created on SQL Server 2005 should never experience incorrect counts", the operative word is 'should'. If the...
January 25, 2012 at 7:23 pm
DougG (1/25/2012)
I am having trouble getting this update correct:
Whoa! This is a stop-and-start-again situation I am afraid. The code looks like it is based on some attempt at...
January 25, 2012 at 7:09 pm
This script demonstrates some concepts to answer some of your questions:
USE tempdb
GO
CREATE PARTITION FUNCTION PF(date) AS
RANGE RIGHT FOR VALUES ('2012-02-01', '2012-03-01', '2012-04-01');
GO ...
January 25, 2012 at 6:49 pm
I would pay particular attention to whether the filter is 64-bit or 32-bit.
January 25, 2012 at 6:09 pm
Shinoj Ramanathan (1/25/2012)
Dito..... METADATA OUT OF SYNC... workedBut why would it? Do you have any articles..
Well it is documented as being not guaranteed - that says it all really. ...
January 25, 2012 at 5:55 pm
In fact sp_spaceused uses sys.dm_db_partition_stats:
SELECT
@reservedpages = SUM (reserved_page_count),
@usedpages = SUM (used_page_count),
@pages = SUM (
CASE
WHEN (index_id < 2) THEN (in_row_data_page_count + lob_used_page_count + row_overflow_used_page_count)
ELSE lob_used_page_count + row_overflow_used_page_count
END
),
@rowCount = SUM (
CASE
WHEN...
January 25, 2012 at 5:49 pm
It seems the metadata is slightly out of sync for this heap. This can happen for lots of reasons, and the rows column in sys.partitions is documented in Books...
January 25, 2012 at 5:41 pm
Also, what's the result of SELECT COUNT(*) FROM {table} WITH (INDEX(0))?
January 25, 2012 at 5:12 pm
What version & build of SQL Server is this?
Have you run a DBCC check on the database, or at least on the table?
Is there anything unusual about the table/view?
Can you...
January 25, 2012 at 4:56 pm
One very fast method is detailed here:
http://pavelpawlowski.wordpress.com/2010/09/30/sql-server-and-fastest-running-totals-using-clr/
January 25, 2012 at 1:30 pm
CTRL+Tab is one option. See SQL Server Management Studio Keyboard Shortcuts for a fairly comprehensive list.
January 25, 2012 at 1:02 pm
Steve Jones - SSC Editor (1/25/2012)
SQL Kiwi (1/25/2012)
Steve Jones - SSC Editor (1/25/2012)
Maybe you can do this?
If we had ever met in person, you would not need to even...
January 25, 2012 at 12:33 pm
Stefan Krzywicki (1/25/2012)
When is the next SQL Server event in NZ?
There is a SQL Saturday in Auckland in 48 hours 🙂
January 25, 2012 at 12:24 pm
Steve Jones - SSC Editor (1/25/2012)
SQL Kiwi (1/24/2012)
Henrico Bekker (1/24/2012)
January 25, 2012 at 12:21 pm
Viewing 15 posts - 976 through 990 (of 8,416 total)