如何从数据库发布向导导出设置?
我正在使用数据库发布向导在 VS2008 中将更改推送到我的托管提供商。 这些设置看起来并不适合项目(这对我来说有点愚蠢),而是它们适合机器。
在我想要发布的每台新机器上,我都需要完成挖掘数据库设置的过程。
有没有办法将这些设置备份/导出/保存到文件中?
如果有,那是什么?
I'm using the Database Publishing Wizard in VS2008 to push changes to my hosting provider. It doesn't look like those settings go with the project (which seems a little silly to me), but rather they go with the machine.
On each new machine that I'd like to publish from I need to go through the process of digging up my database settings.
Is there a way to backup/export/save these settings to a file?
If so, what is it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯...看来发布向导 使用 2 个配置文件作为其应用程序配置:
我试图在 Vista 中访问这些文件(安装了 VS2008 和 SQL Express)并删除。 我会及时向大家发布。
更新:看来我根本没有安装发布向导。 在获取此处的 VS2008 版本之后,然后安装(不用担心-- 您不会看到任何正在安装的指示,但确实如此)......然后使用向导设置我的第一个数据库,看起来确实有一些设置存储在上面列出的“应用程序数据”目录下。 然而,看起来它只是一个 user.config,然后是每个配置的数据库的 XML 文件。 我相信您可以备份这些文件以供以后使用。
Hmmm ... it appears that the publishing wizard uses 2 config files for it's application configuration:
I'm trying to access these files in Vista (with VS2008 and SQL Express installed) and striking out. I'll keep you posted.
Update: Looks like I didn't have the Publishing Wizard installed after all. After grabbing the version for VS2008 here, and then installing (and don't worry -- you won't see any indication it's getting installed, but it does).... and THEN setting up my first database using the wizard, it looks like there are indeed some settings stored uder the 'Application Data' directory listed above. However, it looks like it's just a user.config, and then an XML file for each database configured. I believe you can backup each of these files for later use.