Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How to access remote database server from RESTful WEB API in C# ?

$
0
0

Hi,

I am trying to design RESTful WEB API that can access database (e.g. SQL server) so that I can get data from the database and do some calculations locally and then put the results back to the database.

I am working in C# VS 2013.

I found some examples of ASP.NET API at

http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

http://www.visualstudio.com/integrate/get-started/rest/basics

I need to access database (that is located in remote server) from ApiController.

But, in the exmaples, the database is built locally.

Also, I need to access the remote database server from a GUI.

The GUI users should not see any information about login to the database server, such as password and username.

They can only see the server name and database names.

Any help would be appreciated.




Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>