简体   繁体   English

完整备份MSSQL 2005数据库(使用脚本还是Visual Studio?)

[英]Full Backup of MSSQL 2005 Database (with script or visual studio?)

I'm not much into MSSQL, but I need to do a full backup of a remote MSSQL-2005 Database. 我对MSSQL的了解不多,但是我需要对远程MSSQL-2005数据库进行完整备份。 I have a computer with Visual Studio 2013 Prof. installed. 我有一台装有Visual Studio 2013 Prof.的计算机。 I can use the Server-Explorer of Visual Studio to look into the database, but there seem to be no way to backup it there. 我可以使用Visual Studio的Server-Explorer来调查数据库,但是似乎没有办法在其中进行备份。

I found C:\\Program Files (x86)\\Microsoft SQL Server\\90\\Tools\\Publishing\\1.2\\SqlPubWiz.exe installed on my computer. 我发现计算机上安装了C:\\ Program Files(x86)\\ Microsoft SQL Server \\ 90 \\ Tools \\ Publishing \\ 1.2 \\ SqlPubWiz.exe。 But starting it with doubleclick, it just crashes. 但是以doubleclick开头时,它只会崩溃。

I tried starting it via console with: 我尝试通过控制台使用以下命令启动它:

"C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Publishing\1.2\sqlpubwiz.exe" script -d mydatabase -S myserver -U myuser -P mypass g:\mybackup.sql

but it just says: 但它只是说:

Microsoft (R) SQL Server Datenbankveröffentlichungs-Assistent
Version (10.0.0.0)
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Done.

Without outputting anything to g:\\mybackup.sql 不输出任何内容到g:\\ mybackup.sql

Any ideas? 有任何想法吗?

You should install SQL Server Management Studio (There is an express edition which is free). 您应该安装SQL Server Management Studio(有一个免费的快速版)。 If you connect to the sql instance you can right-click the database go to "All tasks" and there is an option to backup the entire database (Schema and data). 如果连接到sql实例,则可以右键单击数据库,转到“所有任务”,并且有一个选项可以备份整个数据库(架构和数据)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM