Viewing 15 posts - 2,506 through 2,520 (of 18,926 total)
Never tried this (working nor perf).
SET @Param = RTRIM(LTRIM(@Param))
If you can't avoid the scan on the CI, you're dead at 90 minutes for each run.
September 20, 2011 at 2:39 pm
You need to find a way to whack the rtrim here if you want any shot at an index seek.
RTRIM(u.SourceValue)
I also don't see how you can possibly need it since...
September 20, 2011 at 2:37 pm
create table #tmp (output list from sp)
INSERT into #tmp (list of columns)
exec dbo.spname
September 20, 2011 at 2:26 pm
SELECT * FROM (Select rank, columns from table) dt where dr.id = @whatever
September 20, 2011 at 2:22 pm
You need to use my code to make a function.
Then call the function once for each programid
Select programid, function(programid) FRom dbo.table
Make sure you get only 1 row per id otherwise...
September 20, 2011 at 2:21 pm
onlygoodones (9/20/2011)
If I see any page splits down the road, I would go down to 90...
September 20, 2011 at 2:19 pm
gmrose (9/20/2011)
UPDATE MyTable set MyField = 'MyField was NULL' where MyField IS NULLUPDATE MyTable set MyField = 'MyField was not NULL' where MyField IS NOT NULL
Doesn't that just updates everything?
September 20, 2011 at 2:14 pm
Why do you think you have a problem?
September 20, 2011 at 2:13 pm
My guess is that you need to apply the filter after the rank has been calculated ;-).
September 20, 2011 at 2:11 pm
SQL Kiwi (9/20/2011)
GilaMonster (9/20/2011)
SQL Kiwi (9/20/2011)
Amateurs.
SELECT REPLICATE(CONVERT(VARCHAR(MAX), CHAR(39)), 9223372036854775807)Apostrophes all gone :laugh:
Memory too. :crash:
I actually tried running this command before I posted it. :pinch:
I clicked 'cancel' nearly ten minutes ago...
September 20, 2011 at 2:06 pm
RP_DBA (9/20/2011)
September 20, 2011 at 11:54 am
keith_stramler (9/20/2011)
I did try it, but it did fail. It came with a error for incorrect syntax at FOR XML Path.Thanks for trying to help.
Ya that was my 0.1%...
September 20, 2011 at 11:52 am
GilaMonster (9/20/2011)
September 20, 2011 at 11:46 am
mxhxr (9/20/2011)
September 20, 2011 at 11:42 am
Viewing 15 posts - 2,506 through 2,520 (of 18,926 total)