vb.net和本地sql数据库 [英] vb.net and local sql database

查看:91
本文介绍了vb.net和本地sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在我的应用程序中使用本地sql数据库时,当我进行安装项目时,如何使数据库连接字符串在所有其他计算机上工作?

when i use local sql database in my app how i can make "database connection string" to work on all other computer when i make setup project?

推荐答案

连接字符串定义了如何访问数据库。所以,当你部署时,它是否是本地的并不重要,你需要将连接字符串更改为指向生产数据库的任何地方。



这就是您在应用程序的配置文件中保留连接字符串的原因。
The connection string defines how to access the database. So, it doesn't matter if it is local right now when you deploy you'll need to change the connection string to point to wherever the database is in production.

This is why you keep connection strings in the config file of your application.


这篇关于vb.net和本地sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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