Viewing 15 posts - 6,136 through 6,150 (of 7,608 total)
You need to do further research before you change the existing index to a filtered index, because that index will no longer satisfy queries originally using it if you filter...
April 17, 2014 at 9:12 am
gbritton1 (4/16/2014)
IF EXISTS (
...
April 16, 2014 at 11:07 am
I think this coding could theoretically perform better:
...
IF (@AnimalsFound = 1)
BEGIN
SET @CompleteSetFound =
CASE WHEN EXISTS(SELECT
1
FROM @FarmMatches ri
INNER JOIN [dbo].[Animal] ani ON ani.[FeatureID] = ri.[OverallID]
GROUP BY
FeatureID, Code
HAVING
MAX(CASE WHEN TypeName...
April 16, 2014 at 10:34 am
I suggest changing one of your existing indexes to also cover this query:
CREATE NONCLUSTERED INDEX [AI_OperatorCBGEstimate_14947]
ON OperatorCBGEstimate ( DateEndedStandard, UpdOperation )
...
April 16, 2014 at 10:04 am
I've coded checks for just Animal table groupings. Please check and see if it produces the results you want.
Edit: This is doing only full matches but partial matches could...
April 16, 2014 at 9:46 am
It's possible but it's huge overhead you should probably avoid.
You can use ROW_NUMBER() to sequentially number the data when you read it rather than having to physically update the values...
April 15, 2014 at 3:49 pm
You could try something like this and see if it helps:
WITH cte_OrderProjectType AS
(
select A.Orderid, min(B.TypeID) , min(C.CTType) , MIN(D.Area)
from tableA A inner join (
select PID,...
April 14, 2014 at 4:51 pm
Please add an alias to columns in the SELECT:
select ?.Orderid, min(?.TypeID) , min(?.CTType) , MIN(?.Area)
Otherwise we can't really rewrite any of the code.
April 14, 2014 at 2:12 pm
What specifically does the data in the "Verdate" look like?
For example, is it 'yyyymmdd hh:mm'?
April 11, 2014 at 4:25 pm
First properly tune the indexes, in particular getting the correct clustering index (hint: very often this means not clustering on an identity column). That is usually the single biggest...
April 11, 2014 at 3:56 pm
Easiest way with accuracy to me is to run the code for each table create without producing any data, then script out the CREATE TABLE statement to copy into the...
April 11, 2014 at 1:23 pm
Another possibility:
It also provides documentation of the FK relationships.
I suspect they wanted their application to be able to run on many different dbs. Some don't (or didn't) directly support...
April 11, 2014 at 12:29 pm
Excellent! The other thing you need to include in your analysis is the "missing index" info from SQL (DMVs sys.dm_db_missing_index*).
April 11, 2014 at 11:23 am
Is there anywhere Database owner log is logged in sql server 2005.
sys.databases contains the owner of the db. That view is stored in the master db. ...
April 9, 2014 at 10:16 am
patla4u (4/9/2014)
Thanks for your Reply.I understood that, I don't need to disable clustered index. Can I ask you Why?
Thanks
Bhavesh
If you disable the clustered index, you've disabled the table, since the...
April 9, 2014 at 8:09 am
Viewing 15 posts - 6,136 through 6,150 (of 7,608 total)