How to recover a SQL Server Database

來源:互聯網
上載者:User
作者:snowhite2000     時間:01-10-24 02:26

chao_ping

your message box is full again.

你真的逮著我了,我昨天才做過:

use master database:

1. use:

exec sp_db_detach 'database name', 'true'

2. copy datafiles and log file to dist. drive

3. use

EXEC sp_attach_db @dbname = N'database name',
@filename1 = N'new path.mdf',
@filename2 = N'new path.ldf'

send me a message, if you have problems.

作者:chao_ping     時間:01-10-24 02:44

and if i have reinstalled the sql server,
and the new installed master database does not contain the information about my another database, and i only have the old datafiles and logfiles,
how to add this database into the sqlserver?

Your method just moves datafile allocation, and what i want to do is:
after a clean installation, let the new sqlserver mount the old databasees.

just like in oracle, i removes oracle software, reinstall it,
and use oracle to mount the old database.
Thanks.

作者:snowhite2000     時間:01-10-24 02:47

use step 3 only, use master databasde.

作者:chao_ping     時間:01-10-24 03:08

Seems faily easy,
Made it.
Thanks so much.
In fact such easy a job, i donot know it, faint.
Thanks again.

作者:chao_ping     時間:01-10-24 03:08

I really go to sleep now ,bye!
Now 3:09 am now,

作者:snowhite2000     時間:01-10-24 03:10

have a nice dream!

作者:chao_ping     時間:01-10-24 03:11

Thanks

作者:yanwang     時間:01-10-24 22:40

Chao_Ping,

I saw a message from you that asked me to check mailbox. I tried, but I can not login to it. Maybe I typed wrong username and password. Sorry about it. I guess it's about sql server, it looks that you solved the problem.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.