在安装时运行sqldatabase脚本 [英] run the sqldatabase script at install

查看:95
本文介绍了在安装时运行sqldatabase脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一个获胜应用程序,



这里,我需要指导make setup文件(如Exe)与数据库脚本(或其他思考)当时客户端安装设置然后它也在客户端系统的安装文件夹中创建数据表



我的主要问题是如何在客户端系统中创建表或数据库,我混淆了在这里他没有任何sql server管理来运行脚本。



请帮帮我怎样才能做到这一点..



请一步一步指导我

解决方案

您可以在开发时使用SQL Compact数据库。它将在您的应用程序文件夹中自动创建数据库,您可以通过设置安装应用程序。



使用以下链接进行参考,



http://www.c-sharpcorner.com/UploadFile/7d3362/curd-operation-in-local-database-sdf-file-in-window-appli/ [ ^

this is my first win application,

here, i need to guide for make setup file (like Exe) with database script (or other think) which when client install setup then its also make data-table in installation folder in client system

the primary problem with me how can i make table or database in client system , i confuse here he don't have any sql server management to run script .

please help me how can i do this ..

please guide me as step by step

解决方案

You can use SQL Compact database as well as while developing. It will create database automatically in your application folder, where you install your application through the setup.

use following link for the ref purpose,

http://www.c-sharpcorner.com/UploadFile/7d3362/curd-operation-in-local-database-sdf-file-in-window-appli/[^]


这篇关于在安装时运行sqldatabase脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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