Viewing 15 posts - 16,621 through 16,635 (of 49,552 total)
No, there is no magic formula.
You look at all the queries running against that table (not just one), then you figure out which columns they filter on and which order...
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
September 14, 2012 at 6:09 am
Did you run checkDB on TempDB?
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
September 14, 2012 at 5:13 am
chandan_jha18 (9/14/2012)
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
September 14, 2012 at 5:00 am
It's not selectivity that's the biggest key.
http://sqlinthewild.co.za/index.php/2009/02/06/index-columns-selectivity-and-inequality-predicates/
http://sqlinthewild.co.za/index.php/2009/01/19/index-columns-selectivity-and-equality-predicates/
http://www.sqlservercentral.com/articles/Indexing/68439/
http://www.sqlservercentral.com/articles/Indexing/68563/
http://www.sqlservercentral.com/articles/Indexing/68636/
Edit: fixed one link
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
September 14, 2012 at 2:54 am
Let me guess....
You've seen no change in fragmentation. These tables are all very small, maybe a few hundred to a few thousand rows.
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
September 14, 2012 at 2:47 am
Compat mode does not affect the visibility of the DMVs. All DMVs are viewable no matter what the compat mode is.
Now, if he's actually on SQL 200, that might. Please...
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
September 14, 2012 at 2:43 am
Not repairable. There's damage to the system tables.
Script all objects, export all data and recreate the database. Then set up a backup strategy.
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
September 14, 2012 at 2:37 am
harri.reddy (9/13/2012)
(2) If i define variable global variable in my stored proc doesnt it appear inside another stored proc.(nested)
Perhaps because SQL doesn't have global variables?
For the first, why don't...
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
September 13, 2012 at 4:58 pm
SQLRNNR (9/13/2012)
GilaMonster (9/13/2012)
Anyone feel up to helping here?: http://www.sqlservercentral.com/Forums/Topic1358758-391-1.aspxWe'll see. I hope I can be of help.
He's in over his head...
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
September 13, 2012 at 4:39 pm
stanlyn (9/13/2012)
From that article, did you read the very last part as show here:
It is quite simple to fix this error, but you will need to delete all the Metadata...
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
September 13, 2012 at 4:16 pm
Sorry, wrong one. DBCC LogInfo.
File ID maps to the file ID in sys.database_files. Status of 0 is inactive, 2 is active. A log file can only be dropped if all...
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
September 13, 2012 at 4:13 pm
stanlyn (9/13/2012)
Gail,Here is just one of the articles that you've suggested I throw away. Take a look at the bottom and advise...
http://stackoverflow.com/questions/5946153/why-do-we-need-the-ldf-files-along-with-mdf-files
Thanks, Stanley
From that article...
The database will be marked...
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
September 13, 2012 at 4:04 pm
stanlyn (9/13/2012)
What can force...
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
September 13, 2012 at 4:01 pm
Mail redgate support?
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
September 13, 2012 at 4:00 pm
andersg98 (9/13/2012)
Make sure you have moved statistics and text/Image data as well.
Statistics are stored in the system tables, hence are always on Primary
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
September 13, 2012 at 3:59 pm
Viewing 15 posts - 16,621 through 16,635 (of 49,552 total)