Ripristino db suspect sql 7.0 - accesso al db solo ad administrator

venerdì 10 settembre 2010 - 15.43

enrico597 Profilo | Newbie

buon giorno
dopo aver ripristinato un db 'sospetto' con i comandi (presi da microsoft) a seguire, tutti gli utenti (user) che prima si loggavano normalmente (tramite odbc) non riescono più ad accedere al db con il seguente errore: "SQLState: '08004' SQL Server Error: 4060. Server rejected the connection; Access to selected database has been denied". solo i pc con utente administrator riescono ad entrare.
come posso ovviare al problema?
grazie in anticipo
enrico

----------------------------------------------------
use master
go
sp_configure 'allow updates',1
reconfigure with override
go

select * from sysdatabases where name = 'pippo'
begin tran
update sysdatabases set status = 32768 where name = 'pippo'
commit tran

dbcc traceon (3604,3605)
dbcc rebuild_log('pippo','D:\SQL\data\pippo_Log.LDF')

sp_dboption 'pippo', 'single user', true

dbcc checkdb('pippo',repair_rebuild) with all_errormsgs

sp_dboption 'pippo','single_user',false
go
sp_configure 'allow updates',0
go reconfigure with override
---------------------------------------------

Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5