Viewing 15 posts - 181 through 195 (of 429 total)
I agree with you. I will discuss this with my developer after going through Gails' blog link.
But as a DBA, what would someone spot in the execution plan apart from...
November 16, 2011 at 11:26 am
Gianluca Sartori (11/16/2011)
trans.Company_Link =
CASE
WHEN @Company_Link <> 0
THEN
@Company_Link
ELSE
trans.Company_Link
END
looks like a great candidate for dynamic sql.
See here for more details: http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
Moreover, you have lots of LEFT JOINs, that don't help...
November 16, 2011 at 3:10 am
Thanks BT and Paul. Just an update for anyone who is interested.
My original CTE query was taking 5 minutes to run.
then i added an index for a table which...
November 11, 2011 at 7:03 am
SQL Kiwi (11/9/2011)
November 9, 2011 at 3:31 am
Thank you. I know I need a non-clustered index here to speed up the performance. I am basically not worried for performance as of now. If you read my questions,...
October 17, 2011 at 12:45 pm
Thanks Lynn.
Do you know where Gail(Gilamonster), Grant F, Ninja, Jeff Modem, Celco and other great folks are hiding. I need an expert eye because I do not have...
October 17, 2011 at 12:39 pm
GilaMonster (10/15/2011)
A temp table and 3 updates for what can be done in a single query? Not exactly the best option around for performance...
Hi Monster,
Are temp tables bad and should...
October 15, 2011 at 1:32 pm
Grant Fritchey (10/6/2011)
chandan_jha18 (10/6/2011)
Grant Fritchey (10/5/2011)
paul_ramster (10/5/2011)
where PostedDate='1/19/2011'
and PostedDate is defined in the view as:
CAST(CAST(SUBSTRING(WH_Status.StatusHistory,CHARINDEX('Batch posted successfully',CONVERT(VARCHAR(MAX),WH_Status.StatusHistory))-35,26) AS DATE) AS DATETIME) AS PostedDate
You will...
October 6, 2011 at 12:21 pm
Grant Fritchey (10/5/2011)
paul_ramster (10/5/2011)
where PostedDate='1/19/2011'
and PostedDate is defined in the view as:
CAST(CAST(SUBSTRING(WH_Status.StatusHistory,CHARINDEX('Batch posted successfully',CONVERT(VARCHAR(MAX),WH_Status.StatusHistory))-35,26) AS DATE) AS DATETIME) AS PostedDate
You will always get a...
October 6, 2011 at 12:01 pm
Grant Fritchey (10/5/2011)
chandan_jha18 (10/5/2011)
Grant Fritchey (10/5/2011)
You say you're getting a table scan, do you have clustered indexes...
October 6, 2011 at 11:59 am
I changed the data type of 2 columns to match the data type of other column so that varchar can be compared with varchar but still it didn't make much...
October 6, 2011 at 11:21 am
Thanks. I was trying to remove the cast functions in the 'on' filter which Grant mentioned sometime ago.
But as you(Paul and Grant) mentioned about posted date which is defined...
October 5, 2011 at 1:55 pm
Grant Fritchey (10/5/2011)
You say you're getting a table scan, do you have clustered indexes on the tables?...
October 5, 2011 at 12:50 pm
hindle.steve (10/4/2011)
SELECT * INTO [LinkedServerName].[RemoteDBName].dbo.[RemotetableName] FROM [LocalDBName].dbo.[LocalTableName]
However I ma getting therror:
Error 117 The object name...
October 5, 2011 at 8:15 am
Viewing 15 posts - 181 through 195 (of 429 total)