Viewing 15 posts - 32,431 through 32,445 (of 49,552 total)
You should be able to use Row_number. Since you haven't posted any table definitions, this is rough and untested.
SELECT name, mark, Row_number() Over (Order By Mark DESC) as...
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
June 15, 2010 at 11:22 am
Have a look through this: http://www.sqlservercentral.com/articles/Corruption/65804/
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
June 15, 2010 at 10:57 am
beejug1983 (6/15/2010)
I meant exactly what happens that causes suspect mode to db?
SQL will mark a database suspect if and only if corruption (data file or log file) is encountered during...
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
June 15, 2010 at 10:57 am
1. Missing device causes database to be marked suspect.
Won't cause suspect, can cause recovery_pending
2. Disk out of space and no space to expand log file.
Will not cause a database 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
June 15, 2010 at 10:55 am
Jeff Moden (6/15/2010)
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
June 15, 2010 at 10:51 am
Will you please read what I'm saying...
GilaMonster (6/14/2010)
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
June 15, 2010 at 10:49 am
The only non-compete I've ever had prevented me from working for any of that company's clients for a period of 2 years. For a small custom software house, I could...
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
June 15, 2010 at 9:03 am
It's in the same DMV that you're using to find fragmentation - sys.dm_db_index_physical_stats. The column is called page_count.
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
June 15, 2010 at 8:44 am
The Dixie Flatline (6/15/2010)
vuvuzela'ed
Deaf
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
June 15, 2010 at 8:39 am
It's usually no big deal. I've got a drawer full of NDA documents.
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
June 15, 2010 at 8:32 am
SQL sets the database state to suspect (in sys.databases) and prevents anyone from accessing or querying the DB.
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
June 15, 2010 at 8:31 am
Find a torn page or cause a torn page?
When SQL finds a torn page it will throw a severity 24 error and log the page into the suspect pages table...
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
June 15, 2010 at 8:30 am
mw112009 (6/15/2010)
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
June 15, 2010 at 8:27 am
vijay82 (6/14/2010)
1).when ever need i want to restore the entire db on to different Test machine?
Restore the full backup there
2).When ever need i want to partialy made online?
Define 'partially'. Look...
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
June 14, 2010 at 11:44 pm
Please don't cross post. It just wastes peoples time and fragments replies.
No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic937059-357-1.aspx
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
June 14, 2010 at 11:40 pm
Viewing 15 posts - 32,431 through 32,445 (of 49,552 total)