|  
도움말

GoDaddy 도움말

Back up and Restore SQL Server Databases

Some of the information in this article is advanced material we make available as a courtesy. Please be advised that you are responsible for properly following the procedures below. Customer Support cannot assist with these topics.

The following procedures will work for both MSDE and MS SQL Server databases.

To Back Up Databases

  1. Remote desktop to your Windows dedicated server.
  2. Create a backup folder in a convenient location, like the one below:
    C:database_backup
  3. From the command line, run the following:
    osql -E
  4. At the numbered prompts, run the following commands to return the names of all existing databases:
    SELECT name FROM master.dbo.sysdatabases WHERE DBID > 4
    GO
  5. For each database you want to back up, run the following two commands, substituting the appropriate database name, database backup name, and backup folder:
    backup database [database name] to disk = 'c:[backup folder][database backup name].bak'
    GO

The backup database files now reside in the specified folder.

To Restore Databases

  1. Remote desktop to your Windows dedicated server.
  2. From the command line, run the following:
    osql -E
  3. At the numbered prompts, run the following commands, substituting the appropriate database name, database backup name, and backup folder:
    restore database [database name] from disk = 'c:[backup folder][database backup name].bak' with replace, file=1, nounload, stats=10
    GO

이 글이 도움되었나요?
피드백을 보내주셔서 감사합니다. 고객 서비스 담당자에게 문의하시려면 지원 전화 번호 또는 위의 채팅 옵션을 이용하시기 바랍니다.
도와드릴 수 있어 기쁩니다! 더 도와 드릴 것이 있나요?
그것 유감스럽습니다. 혼동이 되었던 사항 또는 솔루션이 고객님의 문제를 해결하지 못했던 원인을 알려주세요.