Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recovering database - need help with 2 errors

Status
Not open for further replies.

demoman

Programmer
Joined
Oct 24, 2001
Messages
242
Location
US
Howdy

We lost a server to hardware failure. SQL Server required a new installation. I attached our database 'otg4' using sp_attach_db. This was successful, or partially so. Now when I try to view the data I get mixed results. In some cases it works fine.

Some tables produce the following error:

[microsoft][ODBC SQL Server Driver][SQL Server]Attempt to fetch logical page (1:3252) in org4 belongs to object 'ae_dt2, but to object 'ae_apps'.

Other tables produce the following error:

[microsoft][ODBC SQL Server Driver][SQL Server]Location: statutil.c:1845
Expression: resultSize == blobSize
SPID: 8
ProcessID: 1760

I would be ever so appreciative of any guidance provided.

Steve
stevem@nuprecon.com
 
Are you sure you included *all* the files when attaching to the database? Some databases may have more than one data file (.mdf) or log file (.ldf).

Make sure you definitly rememebered to attached the Log file as well.

Regards,
JJayUK
 
Both files are attached correctly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top