Sql和Web服务 [英] Sql and Web Services
问题描述
Hello All
Hello All
我对此非常新,所以我需要一些帮助。
I am very very new to this so I do require a bit of help.
我有两个sql查询(目前保存为视图)非常基本(他们选择当天的数据)。 我需要设置一个Web服务,以便另一个分支中的用户可以单击选项1或选项2,如果
是当天的任何数据,则Web服务将显示它们。
I have two sql queries (saved as views at the moment) which are very basic (they select data for the current day). I need set up a web service so a user in another branch can click either option 1 or option 2 and the web service will show them if there is any data for that day.
我使用的是VS2008,sql是SQL server 2008. 我知道我可以在SQL Server中创建一个Web服务,但我想在这个实例中使用VS2008。
I am using VS2008 and the sql is SQL server 2008. I understand I can create a web service within SQL Server but I would like to use VS2008 in this instance.
正如我所说的那样,所以任何指针或帮助都非常感谢。
As I say very new to this so any pointers or help is greatly appreciated.
谢谢
推荐答案
根据您的描述,如果您只需要一个可以查询数据库的Web服务,您可以在Visual Studio中创建一个ASP.NET Web服务应用程序,然后使用ADO.NET访问
数据库。有关在Visual Studio中创建ASP.NET Web服务的更多信息,请参阅:
http://msdn.microsoft.com/en-us/library/8wbhsy70(v = VS.90).aspx
另外,当您在此处发布此问题时Visual Studio报表控件论坛,您对使用报表控件和Reporting Services有更多要求吗?如果您在网络服务中还需要
这些功能,请发布您的要求并随时询问。
如果你有关于ASP.NET Web Service的任何问题,请在ASP.NET Web服务论坛中询问以下链接是否更合适:
http://forums.asp.net/28.aspx
谢谢,
Tony Chain
这篇关于Sql和Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!