在线连接字符串 [英] Online Connection String

查看:81
本文介绍了在线连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友

i希望我的C#windows应用程序连接一个在线网站托管的sql server



我的连接字符串:< br $>


Hi friends
i want my C# windows application to connect a sql server which is hosted in online site

My Connection String:

cs = new SqlConnection("Server=hostingsite.in,2083; Initial Catalog=DBName; User ID=XXXXX; Password=YYYYY;");





执行此查询时显示以下错误





与服务器成功建立连接,但在登录过程中发生错误。 (提供者:TCP提供者,错误:0 - 指定的网络名称不再可用。)



when executing this query the following error is shown


A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)

推荐答案

可能此链接对您有帮助...





如何从c#中的App.Config获取连接字符串 [ ^ ]
May be this link is helpfull for you...


How to get Connection String from App.Config in c#[^]


"data source=Servernm/ipAddress; Initial Catalog=DBName; User ID=XXXXX; Password=YYYYY;"



Happy Coding!

:)


Happy Coding!
:)


这篇关于在线连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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