I'm new to ASP.NET WEB API. I'm trying to create APIs that have connections to a database. For example like login method or add data to a database. But when I tried to search for example tutorial, I couldn't find an example which has a connection string inside it.
My questions are :
- How do I set my connection string to my database? (i.e. user name and password)
- Can I connect to a database which is not in my localhost? (i.e. another server)
If anyone could explain to me about ASP.NET WEB API that has a connection with database, I would really appreciate it.
**Im using visual studio 2012 right now. the database that I would use is MSSQL.
Thx