Here u go :
1.- Stop your SQL Server Service Manager and manually delete the lin2world_log.LDF file
2.- Restart The SQL Server Service Manager, you can see the database in "suspictious mode" or something like that
3.- Open query analyzer
4.- Now we are going to change that "suspictious mode" to emergency mode, use that code:
Code:
--------------------------------
USE master
go
sp_configure 'allow updates',1
go
reconfigure with override
go
update sysdatabases set
status=-32768 where dbid=DB_ID('Lin2World')
go
sp_configure 'allow updates',0
go
reconfigure with override
go
------------------------------------------
5.- Now we are going to rebuild the transaction log file:
Code:
-------------------------------------------------
USE master
go
dbcc rebuild_log('Lin2World',C:\Program Files\Microsoft SQL Server\MSSQL\Data\lin2world_log.ldf')
go
dbcc checkdb('Lin2World')
----------------------------------------------------
If you have the database files in another directory, just change C:\Program Files\Microsoft SQL Server\MSSQL\Data\lin2world_log.ldf' for yours.
6.- Now your Lin2World database only allows access to DBO, to enable multiple logins use that code:
Code:
------------------------------------------------------
alter database Lin2World
set multi_user
------------------------------------------------------
|