将Windows应用程序连接到联机sql数据库2008 [英] Connect windows application to online sql database 2008

查看:100
本文介绍了将Windows应用程序连接到联机sql数据库2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

我用C#,VS 2010和Sqlserver 2008开发了一个窗口应用程序。现在我的客户希望windows应用程序访问在线MSSQL数据库



我的连接字符串是



Hello friends
I have developed a window application using C#, VS 2010 and Sqlserver 2008. Now my client wants the windows application to access online MSSQL database

My connection String is

cs = new SqlConnection("Data Source=real.in,1024; Network Library=DBMSSOCN; Initial catalog=DatabaseName; User ID=UserID; Password=Password; Persist Security Info=True");







但是我没有成功连接到在线Sql服务器



因为我是新的在线SQL服务器我的帮助需要帮助



提前感谢




but i am not succeed in connecting to online Sql server

As i am new for online sql server i ur help in need

thanks in advance

推荐答案

哎呀 - 这是一个非常糟糕的想法。



重新设计数据传输并使用WCF。 WCF位于客户端和数据库之间的服务器上,没有人直接与数据库通信!
Oops - this is a very BAD idea.

Redesign your data transport lay and use a WCF. The WCF sits on the server between the client and the database, nobody talks to the database directly!


这篇关于将Windows应用程序连接到联机sql数据库2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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