问题描述
大家好
我需要一些帮助,使用sqlserver数据库部署vb.net应用程序以在本地网络上工作我知道我必须在 中更改连接字符串app.config但我不知道如何在app.config中更改连接字符串
因为我有这个部分 几乎每种形式的代码
Private cs As New SqlConnection("Data Source = .\SQLEXPRESS; AttachDbFilename = | DataDirectory | \Mas-Database.mdf; Integrated Security = True; Connect Timeout = 30; User Instance = True")
感谢您的帮助
Hi guys
I need some help in deploying vb.net application using sqlserver database to work on local network I know I have to change connection string in app.config but I don't know how to change connection string in app.config
Since I have this piece of code almost in every form
Private cs As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Mas-Database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True")
thanks for help
这篇关于我需要帮助make vb.net应用程序与sql serverdatabase在本地网络上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!