Click here to Skip to main content
15,890,043 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
ERROR 9003: THE LSN (371:4902:1) PASSED TO LOG SCAN IN DATABASE IN SQL 2000
Posted

It seems your db is using the full recovery model with no log maintenance routines in place. Either put the routines in place, or switch your db to the simple recovery model and truncate and shrink your log.

To Shrink Log:
backup log databasename with truncate_only
dbcc shrinkfile(logdevicename, NewSizeInMB)
ie dbcc shrinkfile(securitymaster_log, 2048)

you can obtain the log file name via select name from sysfiles for the current database, or via Enterprise Manager.

switch your db to simple recovery model if you do not need recovery outside of the last full backup, or put jobs in place to backup the database log periodically.
 
Share this answer
 
much better Solution...




According to MS documentation, 9003 error should mean that your mdf and ldf files are out of syn. And the solution is usually attaching single file using sp_attach_db or sp_attach_single_file_db Sps to let SQL Server create a new log file for you. But you've said it didn't work. If it's not possible to put db into emergency mode, I guess there's corruption somewhere in data file header (just my opinion) and you have only two options left: go back to your last good backups or try to contact MS Support with uncertain results.
mojza

just for the sake of completness if you run dbcc dbrecover ('your_db')
command, the result is probably the same as during server startup?
 
Share this answer
 
v2
Never had this problem, but it seems others have: google was pretty full when I did a search on "ERROR 9003"
It looks like it is a corrupt DB, or a disk space problem, or similar - have a look at this blog which forces a currup DB to attach, it may help. http://www.sqlskills.com/blogs/paul/post/TechEd-Demo-Creating-detaching-re-attaching-and-fixing-a-suspect-database.aspx[^]

A thought does occur though - SQL 2000 is pretty old. Does it support the version of the DB you are trying to attach?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900