2. Click the New Query button
3. Paste the following SQL script into your New Query page replacing YourDatabase with the name of your database.
EXEC sp_resetstatus [YourDatabase];
ALTER DATABASE [YourDatabase] SET EMERGENCY
DBCC checkdb([YourDatabase])
ALTER DATABASE [YourDatabase] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ([YourDatabase], REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE [YourDatabase] SET MULTI_USER
4. Click Execute
Your database should no longer be tagged as (suspect) and you should be able to access it.
2. Nhấp vào nút New Query
3. Dán tập lệnh SQL sau vào trang Truy vấn mới thay thế YourDatabase bằng tên của cơ sở dữ liệu của bạn.
ALTER DATABASE [YourDatabase] SET EMERGENCY
DBCC checkdb([YourDatabase])
ALTER DATABASE [YourDatabase] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ([YourDatabase], REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE [YourDatabase] SET MULTI_USER
Đăng nhận xét