Tameen Malik
Tameen Malik

Reputation: 1268

How to access same database by both asp.net web application and WPF desktop application

My question can be simple or easy. I have created two applications one is asp.net website and second is WPF Desktop application. Both are accessing same sql-server database. Question are:

  1. What are the best hosting websites to register a website?

  2. Once a website is registered how to access that SQL-server database placed on server by desktop application?

Upvotes: 1

Views: 838

Answers (2)

Ankush Jain
Ankush Jain

Reputation: 7069

answers

  1. Godaddy, bigrock, somee.com** are good hosting providers

  2. Use the same ConnectionString in both website and WPF application.

Upvotes: 2

Z .
Z .

Reputation: 12837

Ideally you should develop an API and host it as a webservice somewhere (azure?) and let the webapp and wpf app access only that service, not the database directly.

Upvotes: 1

Related Questions