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
 General SQL Server Forums
 Data Corruption Issues
 Database repair - need help please!

Author  Topic 

antheia
Starting Member

4 Posts

Posted - 2008-04-28 : 11:18:17
I started getting errors everytime i try to access my webmail(horde), my zencart and my forum so i asked my website host and they say i need to repair the SQL database. I have no idea what this means, can someone help please?

The errors are:

Horde: A fatal error has occurred
Could not connect to database for SQL SessionHandler.
Details have been logged for the administrator.

Zencart: 0 DB_ERROR_NOT_CONNECTED
in:
[db_cache table]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

SMF Forum: Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

Please help, i am totally lost!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-04-28 : 13:18:08
There isn't anything in your post that would help us help you.

In order to determine if you have database corruption, run DBCC CHECKDB. If it returns errors, then you've got some database corruption and therefore should post the entire output here.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

paulrandal
Yak with Vast SQL Skills

899 Posts

Posted - 2008-04-28 : 17:33:20
Yup - please run the following:

DBCC CHECKDB (yourdbname) WITH ALL_ERRORMSGS, NO_INFOMSGS

Thanks

Paul Randal
SQL Server MVP, Managing Director, SQLskills.com
Go to Top of Page

antheia
Starting Member

4 Posts

Posted - 2008-04-28 : 21:36:48
Sorry but i have no idea what you mean? How do i do this?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-04-28 : 22:21:20
Run it in ssms -> query windows (sql2k5) or query analyzer (sql2k), sql books online tells you how to run sql query.
Go to Top of Page

antheia
Starting Member

4 Posts

Posted - 2008-04-28 : 22:26:28
Is that some type of program i need to download?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-04-28 : 22:37:22
No, it's builtin sql command.
Go to Top of Page

paulrandal
Yak with Vast SQL Skills

899 Posts

Posted - 2008-04-29 : 09:52:33
No offense - but I seriously recommend you call Microsoft Product Support to help you with this. They will do a much better job of walking you through this than we will - especially if you don't have any SQL Server knowledge.

Thanks!

Paul Randal
SQL Server MVP, Managing Director, SQLskills.com
Go to Top of Page

antheia
Starting Member

4 Posts

Posted - 2008-04-29 : 10:05:48
nevermind, it resolved itself somehow.
Go to Top of Page

data recovery
Starting Member

2 Posts

Posted - 2008-05-30 : 03:21:27


If still you are not able to repair it manually, then repair it bu any result oriented database repair software..

Hope this works

There is every possible solution to each problem like data recovery. Data recovery is possible in 85% of cases.
http://www.nucleustechnologies.com
Go to Top of Page

paulrandal
Yak with Vast SQL Skills

899 Posts

Posted - 2008-05-30 : 08:36:32
Yes, this might automate some of what you can do manually, but as with any other 'recovery' tool, it won't go anywhere if the database can't be repaired by CHECKDB in the first place. Use with caution.

Paul Randal
SQL Server MVP, Managing Director, SQLskills.com
Go to Top of Page

dragoslav10
Starting Member

2 Posts

Posted - 2011-03-23 : 13:49:23
can anybody sent me a script for repair

bajabaja
Go to Top of Page

addisionphilip
Starting Member

4 Posts

Posted - 2011-04-11 : 07:57:36
quote:
Originally posted by data recovery



If still you are not able to repair it manually, then repair it bu any result oriented database repair software..

Hope this works

There is every possible solution to each problem like data recovery. Data recovery is possible in 85% of cases.
http://www.nucleustechnologies.com



Agree, you can also try an updated unspammed that repairs .mdf as well as .ndf file of sql server database

unspammed
Go to Top of Page
   

- Advertisement -