Viewing 15 posts - 151 through 165 (of 1,114 total)
Gail,
I tried with 'DYNAMIC SQL'. But the ecexution time still remain same.
Declare @ID varchar(255), @AssetType_Code INT,@SQL varchar(255),@WHERE varchar(255)
Select @ID = ''
--select @AssetType_Code = isnull(@AssetType_Code,'')
SELECT @sql = 'Declare @ID varchar(255) Select...
May 25, 2010 at 1:49 am
Declare @ID varchar(255), @AssetType_Code INT
Select @ID = ''
--select @AssetType_Code = @AssetType_Code
SELECT @ID = @ID + ',' + CAST (ID AS VARCHAR(3))
FROM tblStrategy_k
WHERE Strategy = 'A3_fund' --UPPER(@StrategyName)
--AND (AssetType_Code = @AssetType_Code...
May 24, 2010 at 10:42 pm
Declare @ID varchar(255), @AssetType_Code INT
Select @ID = ''
--select @AssetType_Code = isnull(@AssetType_Code,'')
SELECT @ID = @ID + ',' + CAST (ID AS VARCHAR(3))
FROM tblStrategy_K
WHERE Strategy = 'A3_Fund' --UPPER(@StrategyName)
--AND isnull(AssetType_Code,'') = @AssetType_Code
AND...
May 24, 2010 at 9:10 am
Query without CURSOR ( SET BASED )
SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 0 ms.
SQL Server Execution Times:
...
May 24, 2010 at 8:50 am
elutin,
I am not getting your point.
you mean to say that using UDF is ok.
what do you mean by in-line SQL ?
i just little bit confused...what is the difference between...
May 24, 2010 at 4:28 am
http://scarydba.wordpress.com/2008/07/01/constant-scan-in-execution-plans/
Pls find the attached query plan.
May 24, 2010 at 4:08 am
ColdCoffee....I too observed the result. Yes...You are correct! Second one will display 2 more result.
May 24, 2010 at 12:32 am
Nope, this isn't a WHILE loop, I'm fairly confident it's set-based.
No...No...Curently the procedure is using LOOP to split the delimited values. I have to replace it with the above...
May 21, 2010 at 6:35 am
elutin (5/20/2010)
SELECT A/B FROM TABLE1 WHERE B!=0
No? Welcome to Microsoft SQL Server version 2005 and higher query...
May 20, 2010 at 7:26 am
Welcome to Microsoft SQL Server version 2005 and higher query optimiser.
IT MAY HAPPEN! As optimiser may deside to evaluate devision result before applying WHERE filter (or JOIN) and return the...
May 20, 2010 at 7:21 am
I tried with 'Tally' table...
DECLARE @phrase VARCHAR(200);
SET @phrase = ',' + 'book,paper,computer' +',';
SELECT word, word_order ,'%,' + word + ',%'
FROM (SELECT SUBSTRING(@phrase, n,...
May 20, 2010 at 7:06 am
ColdCoffee (5/18/2010)
NOTE : Jeff Moden had advised that this code contains triangular joins and we...
May 18, 2010 at 6:12 am
post the DDL with some sample data. I am sure you can get HELP from here.
May 17, 2010 at 8:03 am
Viewing 15 posts - 151 through 165 (of 1,114 total)