Re: 2 Billion records a table
- From: "Myles.Matheson@xxxxxxxxx" <Myles.Matheson@xxxxxxxxx>
- Date: 21 Jul 2005 21:41:35 -0700
Hello David,
That's really strange. Have you let it generate the execution plan or
does it fallover?
Sometimes with large tables it takes along time to generate a plan.
Rather than using query analyzer to generate the plan try the text
version.
Try the query below:
SET SHOWPLAN_TEXT ON
GO
SELECT COUNT_BIG(1) FROM dbo.SalesOrderDetail WITH (NOLOCK)
GO
SET SHOWPLAN_TEXT OFF
The big count returns as a Big INT instead of INT. This may help your
row count if the number of row exceeds the INT range.
Hope this helps
Myles Matheson
Data Warehouse Architect
.
- References:
- 2 Billion records a table
- From: David Liu
- Re: 2 Billion records a table
- From: Myles.Matheson@xxxxxxxxx
- Re: 2 Billion records a table
- From: David Liu
- 2 Billion records a table
- Prev by Date: Re: 2 Billion records a table
- Next by Date: Re: 2 Billion records a table
- Previous by thread: Re: 2 Billion records a table
- Next by thread: Re: 2 Billion records a table
- Index(es):
Relevant Pages
|
Loading