Create Windows Desktop widget which connects to SQL Server
I want to create a desktop widget for Windows 7.
My requirements are below
- I can pro开发者_Python百科vide SQL Server login credentials
- It should connect to SQL Server
- List out all the jobs in the server
Can anyone guide me on how to do this and where to start from?
Perhaps create a middle layer, that returns XML/JSON/HTML/..., that your widget can call through HTTP?
SQL Server 2005 supported native XML web services using SOAP/HTTP endpoints. It's been deprecated in sql server 2008.
Your best bet would be to create a small HTTP server that acts as a broker between your SQL Server and desktop widgets. You can find C# example code for HTTP server on Google. http://www.google.is/search?hl=is&q=c%23+simple+http+server
Then let your widget just call the HTTP server for the information you want to display.
PS: Make your HTTP server log on and talk to the SQL Server, don't send database credentials (or ay other for that matter) over HTTP.
精彩评论