在使用MSSql Server作为后端的客户端PC上安装应用程序 [英] Install Application At Client PC which uses MSSql Server as Backend

查看:71
本文介绍了在使用MSSql Server作为后端的客户端PC上安装应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 WinForm 应用程序,该应用程序使用 MS-SQL服务器作为数据库.

当然,现在我在PC(开发人员的PC)上创建的数据库在要安装我的应用程序的客户端PC上不可用.

那么在客户端PC的MS-SQL服务器上添加数据库的最佳标准或实践是什么.


任何伙伴都可以告诉我在哪里可以找到使用
创建的数据库脚本 SERVER EXPLORER Visual-Studio 2010 这样我就可以在客户端PC上直接执行它了?

这样我就可以在我的应用程序中访问它了.

请帮忙....谢谢.......

I have one WinForm Application which using MS-SQL server As Database.

Now of course Database i have created on my PC(Developer''s PC) is not available on Client PC where i will install my Application.

Then what is the best criteria or practice to Add Database at Client PC''s MS-SQL server.

or
any buddy can tell where could i find script of my database created using
SERVER EXPLORER Visual-Studio 2010 so i can directly execute it on Client PC?

So i can access it my Application.

Please Help.... Thanks.......

推荐答案

要生成脚本,请执行以下操作:

打开SQL Management Studio
右键单击您的数据库
任务->生成脚本
在对话框中按下一步",直到询问将其保存在何处
点击高级"按钮
寻找要编写脚本的数据类型
选择模式和数据
按确定",然后按下一步"
然后文件已生成.
它将使用所有数据生成数据库.

谢谢.
To generate the script:

Open the SQL Management Studio
right click on your database
Tasks -> Generate Scripts
in the dialog box press Next until asking where to save it
click the Advanced button
Look for the Types of data to script
Select Schema and data
Press OK and Next
Then the file has been generated.
It will generate your database with all the data.

Thanks..


在开发PC中,您可以使用Server Explorer生成脚本到文本文件

在客户端PC中,通过命令行使用"sqlcmd"在该文本文件中插入数据

p/s:对我来说,我使用"sqlcmd"命令导出和导入数据库:)
in development pc, you can use Server Explorer to generate script to an text file

in client pc, use "sqlcmd" via command line to insert data in that text file

p/s: for me, i''m use "sqlcmd" command to export and import database :)


这篇关于在使用MSSql Server作为后端的客户端PC上安装应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆