Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
SQL Server 2000/2005/2008, Express, Access, MySQL, Oracle
Ripristino db suspect sql 7.0 - accesso al db solo ad administrator
venerdì 10 settembre 2010 - 15.43
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
enrico597
Profilo
| Newbie
2
messaggi | Data Invio:
ven 10 set 2010 - 15:43
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
---------------------------------------------
Torna su
Stanze Forum
Elenco Threads
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 !