如何将sql server 2008数据库上传到生产服务器
嘿伙计们, 我正在为客户创建一个网站,我的网站即将完成,现在我想将数据库上传到客户的生产服务器,但我没有任何关于如何将数据库上传到生产服务器的提示。任何人都可以帮我完成如何将 sql server 2008 数据库上传到生产服务器的步骤,请记住,生产不是专用服务器,我想我必须在服务器上运行我的数据库脚本,但我不这样做知道如何运行,我会在生产服务器上获得相同的选项,还是需要在sql服务器上挖掘相同的选项...
请尽快帮助我。 感谢和问候 阿巴斯电气瓦拉
hey guys,
i am creating a website for a client, my website is almost complete, now i want to upload the database to the clients production server, but i dont have any hint about how to upload the database to the production server. can anyone please help me with the steps how to upload the sql server 2008 database to the production server, keeping in mind, the production is not the dedicated server, i think i have to run my database script, on the server, but i dont know how to run, will i get the option for the same on the production server, or need to dig for the same on the sql server...
Please help me for this as soon as possible..
Thanks and Regards
Abbas Electricwala
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能想到几个方法。
例如,
如果您在 Visual Studio 中有版本控制的数据库对象,那么您可以通过指定生产数据库连接将其部署到服务器。在这种情况下,此 MSDN 链接可以为您提供帮助。
或者,
您可以备份当前的开发数据库并将其恢复到生产服务器。如果您从未使用过备份和还原,请阅读这些 MSDN 链接,了解 备份,用于 恢复。当然,在正常情况下,备份/恢复并不是那么简单,但由于您的系统是新的且未使用,因此这应该是一项简单的任务。
或者,
从当前开发服务器编写数据库对象脚本并将这些脚本运行到生产服务器(例如使用 Sql Server Management Studio)。生成脚本很容易,但我认为没有人可以用几行内容逐步解释它。但您可以阅读此 MSDN 链接获取详细信息。
I can think of few methods.
For example,
If you have version controlled database objects in Visual Studio then you can just deploy it to server by specifying production database connection. This MSDN link can help you in that case.
Or,
You can take backup of your current development database and restore it to production server. If you have never worked with backup and restore, read on these MSDN links, for Backup, for Restore. Of course, in normal situation Backup/Restore is not this straight forward but since your system is new and not in use, this should be easy task.
Or,
Script out database objects from current development server and run those scripts to production server (say by using Sql Server Management Studio). Generating scripts is easy but I don't think anyone can explain it step-by-step in few lines. But you can read this MSDN link for detailed information.