View Full Version : [HELP] Lin2world (SUSPECT)
Hi ppl i have a problem here.
the server falls every 2 hours with errors of data base and now the server crach and my db is marking like suspect, is some form to solve this problem. :cry:
CacheD Error
Error 08S01:[Microsoft][ODBC SQL Server Driver]Error en el vínculo de comunicación
than for you time ppl.
There is a post on the microsoft knowledge base about this. There might be a fix for it. I hope you have a backup handy, it's the quickest and most painless way to fix this issue.
use backup or (in QA)
(1)
Use master
go
sp_configure 'allow updates', 1
reconfigure with override
go
(2) get and write somewhere status of your db:
select status from sysdatabases where name = 'lin2world'
(3) update sysdatabases set status=-32768 where name = 'lin2world'
(4) restart SQL server
(5) ONLY if lin2world's status doesn't change to Emergency, than detach it, backup ldf and mdf files, make new db with the same name, stop sql server, replace newly created .mdf with old one from that backup, start sql server and begin from (1)
(6) if you changed mdf in (5) than:
DBCC REBUILD_LOG('lin2world', '<new transaction log file with full path>') You'll get: Warning: The log for database 'lin2world' has been rebuilt.
(7) Use master
go
sp_dboption 'lin2world', 'single_user', 'true'
go
USE lin2world
GO
DBCC CHECKDB('lin2world', REPAIR_ALLOW_DATA_LOSS)
go
( 8 ) sp_dboption 'lin2world', 'single_user', 'false'
go
Use master
go
sp_configure 'allow updates', 0
go
CubAfull
12.04.2006, 18:33
*sorry*
Thank you very much for try to help me. this data base is very damaged reason why I have decided to do rollback. The problem is the following one.
this is the third occasion that happens the problem in the course of 1 week. the data base that I have (Backup) seems that is also damaged, why I say this, my data base have been checked by these routines and does not show any error to me, but, in the course of 2 days the same problem happens, cached begins to throw errors since it is not possible to be connected with the server and there the data base is again in mode (suspect).
There is some routine for SQL that allows me to identify where is the error in the data base that I have (Backup) ?
Here are the routines that I have parsing to verify if the db have errors.
USE lin2world
GO
DBCC CHECKDB
GO
-- REPAIR_FAST/REPAIR_REBUILD/REPAIR_ALLOW_DATA_LOSS
USE lin2world
GO
ALTER DATABASE lin2world SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
DBCC CHECKDB('lin2world', REPAIR_ALLOW_DATA_LOSS)
go
ALTER DATABASE lin2world SET MULTI_USER
GO
thank ppl for your help.
Somebody that can help me. please :(
just only "DBCC CHECKDB" to check your db. if your db offen fails to suspect try to rebuild its log (see above) and move data and transaction logs to another (physical) disk
if you want to check backup - restore from it to _another_ db and check it for errors