Viewing 15 posts - 196 through 210 (of 309 total)
ricardo_chicas (4/28/2010)
even simplier:select
a.column2,
a.column4,
a.column6
from
dbo.table1 a
where
a.column like 'abcdef00001%'
and a.column7 <> '0'
How many rows are in the table ?
How many rows does the query above really return ?
What do your indexes look...
April 29, 2010 at 7:19 am
Paul White NZ (4/28/2010)
kinzent (4/28/2010)
April 29, 2010 at 7:05 am
apat (4/27/2010)
I have one huge table with billions of records. Just curious, If I separate data from that table in 10 tables and create clustered index on all the...
April 28, 2010 at 7:04 am
The statistics might affect the chosen query plan.
The query plan might affect the order of the returned rows.
If the order of returned rows is important for you, you MUST specify...
April 28, 2010 at 5:32 am
Andy Lucas (4/27/2010)
My app is working perfectly fine using Stefan_G's second production (it seems to be the fastest apart from Paul's SQLCLR masterpiece)
Please dont use the xml-based method if you...
April 28, 2010 at 2:37 am
Paul White NZ (4/27/2010)
There was a *huge* thread on this last year on SSC. Florian Reischl was good enough to post a very comprehensive set...
April 28, 2010 at 12:58 am
Andy Lucas (4/27/2010)
And it takes a lot longer than 29 secs - more like 79 on...
April 27, 2010 at 5:46 am
EDIT: Please ignore this post. My performance test was flawed.
It gave totally wrong results because I was using a test table with 1000000 identical strings. With that test data...
April 27, 2010 at 4:15 am
I would recommend using an inline table-valued function instead.
Like this:
-- Generate numbers between @start and @end
create function [dbo].[GetRange](@start int, @end int) returns table as
return
select top (@end-@start+1) (row_number() over(order by...
April 27, 2010 at 3:00 am
dtipser (4/23/2010)
I have two databases on SQL Server 2008, one DEV and other QA with the same structure and very similar data inside. I run the same stored procedure in...
April 25, 2010 at 7:47 am
Paul White NZ (4/24/2010)
Is it impossible to write an iTVF that implements the requirement?Just added some defensive coding there. 😎
OK, I should have known better than to challenge you like...
April 24, 2010 at 8:12 am
Paul White NZ (4/23/2010)
What I do disagree with you about is your statement that because no error was observed in 2005, it is a bug in 2008.
This is...
April 24, 2010 at 2:51 am
Paul White NZ (4/22/2010)
April 23, 2010 at 2:04 pm
This thread actually highlights two different but related issues.
Issue 1:
Fact: The behavior of some very specific constant-only expressions in filters has changed between 2005 and 2008.
My opinion: I consider...
April 22, 2010 at 10:40 am
Viewing 15 posts - 196 through 210 (of 309 total)