简体   繁体   中英

Connection string to SQL Server using Windows Service Account

Is it possible to use a Windows Service Account for connection to SQL Server?

If no, how would you allow the user of a windows application to connect to your database then?

How about in a Web App?

I'm pretty much asking for best practices.

Can you potentially provide me with some step-by-step guides as I'm trying to learn.

Yes it is possible. You need to use some ORM for that. Being a branch of Entity Framework ORM, we provide communication with database. You can start learning here

There is a more professional approach, the Repository Pattern. İn here

Here the general logic is the same for both. To connect a Local or Virtual Database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM