Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 SQL Optimization Server Crash

Author  Topic 

andrewc
Starting Member

10 Posts

Posted - 2008-06-09 : 08:06:53
Hi all, I was wondering if you's could help me out.
We run sql optimization on 2 of our databases and when they run they cause our server to crash - system log reports: unexpected shutdown. When we take these jobs out of action the server does not crash.

I'm not sure if this could be a CPU or memory related issue or if its a SQL configuration issue?

Any comments/ideas would be great.

Thanks.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-09 : 08:13:15
What is "SQL optimization"?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-09 : 08:15:21
When you do a database Maintenance Plan you can select Optimization for that specific database.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-09 : 08:19:43
Index optimization?

Do you have enough disk space?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-09 : 08:41:09
Yeah, most likely Index Optimization.
Yeah, loads of disk space.
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-09 : 08:49:14
This may shed some light...
Its the optimizations tab of this windows:




Thanks
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-09 : 09:07:32
I think I need glasses, because I see General tab, not Optimization tab.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-09 : 09:32:36
Sorry thats the only web image I can find. Its the optimizations tab of that window.
Go to Top of Page

mdubey
Posting Yak Master

133 Posts

Posted - 2008-06-09 : 09:41:55
Please read this link carefully.
http://technet.microsoft.com/en-us/library/aa964133.aspx

Manoj
MCP, MCTS
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-09 : 09:42:13
Is it this tab?


If so, you will definitely need more disk space.


E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-09 : 09:59:30
Thats the correct tab, there is at least 60gig left on each disk that is in the server.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-09 : 10:02:17
Doesn't say much.
How big is your database now?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-09 : 10:06:31
Its 5601.69MB.
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-09 : 11:18:18
Any other idea's?
Go to Top of Page

tripodal
Constraint Violating Yak Guru

259 Posts

Posted - 2008-06-09 : 12:20:32
Is your hardware overheating?
Failed / Failing harddrive? (bad sectors in your freespace will do such things)
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-06-09 : 16:41:51
Because you are Rebuilding index for all databases which is offline operation. And also you are shrinking database. It should be done in offline hours.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-06-09 : 22:36:47
Did you see any error in plan's log file?
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-10 : 03:46:49
No errors in the log file, it just stops logging at no perticular point.
It could be failing hardware, would defragmenting the hard drive fix bad sectors? How could I run a memory check while the server is live?

Thanks
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-06-10 : 19:36:06
"How could I run a memory check while the server is live?"

You can check with Perfmon for Memory counters. Usually it is best to set Black-box trace and will give you information what caused SQL server to shut down:

check this out :
http://blogs.msdn.com/sqlserverstorageengine/archive/2007/06/03/sql-server-s-black-box.aspx
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-06-10 : 19:39:36
This sounds like a bug. The system should not shutdown before, during, or after any maintenance plans.

What does SELECT @@VERSION show?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

andrewc
Starting Member

10 Posts

Posted - 2008-06-17 : 04:28:42
SELECT @@VERSION shows:
Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
Go to Top of Page
    Next Page

- Advertisement -