all groups > sql server (alternate) > january 2005 >
You're in the

sql server (alternate)

group:

Database marked as suspect please HELP!



Re: Database marked as suspect please HELP! getinked
1/6/2005 10:25:09 AM
sql server (alternate): did you try reattaching it ?
Re: Database marked as suspect please HELP! getinked
1/6/2005 1:23:38 PM
yea the relative path would be where you are storing the data....thus
being on your D drive.
Database marked as suspect please HELP! kurotsuke
1/6/2005 4:09:11 PM
Hi,

I restored my Windows XP system and discovered that I cannot access a
MSDE DB that was saved in D: drive (I restored my primary partition in
C). How can I restore it?
Re: Database marked as suspect please HELP! kurotsuke
1/6/2005 8:08:56 PM
[quoted text, click to view]

How can I do that? I have the MDF and LDF files but I've never done a
backup. I'm using the trial version of Teratrax Database Manager and
DbaMGR2K.
Re: Database marked as suspect please HELP! kurotsuke
1/6/2005 8:10:54 PM
[quoted text, click to view]

I noticed the attach command in Teratrax but don't know how to use it.
It tells me

sp_attach_db 'database_name', 'file_name_and_path_relative_to_server'

Is the database_name the filename? What's the relative path? I've my
DB saved in D:\database while the server is in C:\InetPub I think.
Re: Database marked as suspect please HELP! Erland Sommarskog
1/6/2005 11:30:58 PM
kurotsuke (kurotsuke@yahoo.it) writes:
[quoted text, click to view]

The exact path to where the database file is located. (The Send To Cliboard
as Name from the Win95 Powertoys comes in extremely handy here.) For
instance D:\Program Files\Microsoft SQL Server\MSSQL\Data\yourdatabase.mdf.
Note that you have two files to enter: the .MDF and the .LDF.

However, since your database is marked as suspect, it still attached
to SQL Server in some sense. You may have to drop it first. Then again,
you could attach the database under a new name.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
Re: Database marked as suspect please HELP! kurotsuke
1/7/2005 12:15:30 AM
[quoted text, click to view]

AddThis Social Bookmark Button