We help IT Professionals succeed at work.

Cannot attach DB: No Log file. and error: Could not locate row in sysobjects for system catalog 'Sysobjects' in database 'cctx'. This system catalog should exist in all databases. Run DBCC CHECKTABLE

stephi01
stephi01 asked
on
697 Views
Last Modified: 2008-02-26
I am trying to attach a single .mdf file Database using:

sp_attach_single_file_db  @dbname =  'cctx'
    ,  @physname =  'c:\MSSQL7\Data\cctx_data.mdf'

I do not have a .ldf file for the DB.
When I run the script I recieve:

Could not locate row in sysobjects for system catalog 'Sysobjects' in database 'cctx'. This system catalog should exist in all databases. Run DBCC CHECKTABLE

I can't run DBCC CHECKTABLE because the database is not attached yet.
This .mdf file is not attached to any server anywhere so I cannot work with it before moving it...
Also, I am running MSDE... no client tools.

Any help would be appriecitated.
Comment
Watch Question

AneeshDatabase Consultant
CERTIFIED EXPERT
Top Expert 2009

Commented:

Author

Commented:
I could see how this would work but I am using MSDE. I do not have the Enterprise Manager. Good thinking though.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
if is already detached, my solution won't work

Author

Commented:
That's where I am running into issues.
The DB was detached by another tech and I do not have it attached anywhere....
AneeshDatabase Consultant
CERTIFIED EXPERT
Top Expert 2009
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.