Viewing 15 posts - 35,521 through 35,535 (of 49,552 total)
Ok, looked around and seems there's both definitions of internal and external fragmentation. I usually use them to mean fragmentation internal to SQL (and fixable within SQL) and fragmentation external...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 3, 2009 at 1:44 am
Please post queries, table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
One of the non-clustered index is having all the columns in that table.
Why? Is that index used?...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 3, 2009 at 1:36 am
guptaajay1985 (12/2/2009)
Thanks..Actually this is a critical scenario and to make changes in a running scenario is risky.
It doesn't make the slightest difference how critical the situation is. You have to...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 3, 2009 at 1:30 am
tnocella (12/2/2009)
Begin
SELECT 1
End
--- Proc 1 just returns a value of 1 through a select
Create Procedure p_myproc2
Begin
Declare @Result int...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 3, 2009 at 1:22 am
tnocella (12/2/2009)
I tried that code, its actually executing the procedure and returning it as a result from thecalling stored procedure.
Well, yes. That's what you want isn't it?
I basically...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 3:07 pm
Ok, don't know what the rest of the query looks like, but to be 100% sure that we're looking in the right place at the right rows, please complete and...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 2:46 pm
J-F Bergeron (12/2/2009)
SQL Server does not let you assign a value to a column when it COULD be returning more than 1 row.
It does allow the scenario where returning...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 2:37 pm
You're not relating the subquery in any way to the table that you're updating, so, for each row of the table that you're updating, ALL of the rows in the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 2:29 pm
Declare @Result int
exec @Result = sp_myprocedure @Param1, @Param2, @Param3
Aside, don't name stored procedures sp_<whatever>. sp_ means system procedure and, if a proc is named that, resolution is first to the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 2:24 pm
shannonjk (12/2/2009)
I am sure after testing several thousand times it had generated quite a few plans that are no longer the best suited for what I have now.
There will...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 2:21 pm
CirquedeSQLeil (12/2/2009)
just came across this ad:http://www.sqlservercentral.com/Forums/Topic716821-360-3.aspx
You missed what happened over Thanksgiving weekend. On the friday that guy had posted to over 20 threads with exactly the same message, even threads...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 2:18 pm
'Private Insurance' is NOT one of the possible values for cval1.Control_Value1.
Maybe not, but the 2nd branch of the case allows for 'Private Insurance' to be returned when Control_Value1 is NULL...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 2:15 pm
Why are there quotes around the -1? Is that column a varchar? If so, check for leading spaces.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 2:12 pm
atramard (12/2/2009)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 12:21 pm
rahulsony111 (12/2/2009)
will the select statement selects the tablenew1?
like 'select altertable tablenew1 alter column column'
And will it...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 2, 2009 at 12:12 pm
Viewing 15 posts - 35,521 through 35,535 (of 49,552 total)