带有SQL服务器的SIlverlight [英] SIlverlight with SQL server

查看:71
本文介绍了带有SQL服务器的SIlverlight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在VS 2008上的Silverlight 3中表现得更好。

I am biginner in silverlight 3 on VS 2008.

在我的银色网络项目中,我有一个combobox,我想从一个sql server数据库填充它。但我不能使用System.data.SQLClient引用,我认为它在silverlight中不受支持

In my silverlight web projet, i have a combobox, and i would like to fill it from an sql server database. But I can't use the System.data.SQLClient reference, i think it's not supported in silverlight

我怎样才能连接到sql server?

How could i connect to sql server?

请帮助我,这很紧急。

Thx

推荐答案

嗨。

您必须使用WCF连接到应用程序服务器(例如Web应用程序)。然后应用程序服务器打开与sql server的连接。

You have to use WCF to connect to a application server (e.g. a Webapplication). The application server then open the connection to the sql server.

请看这里:
http://www.dotnetspark.com/kb/652-7-simple-steps-to-connect-sql-server-using.aspx

亲切的问候,

Daniel


这篇关于带有SQL服务器的SIlverlight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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