I'm developing a desktop client application in wpf and I want to put my database which I currently have in Access on our SQL Server instance. I don't think it's a good idea to use windows authentication, because then every user should be added to sql server and given the necessary rights. So another option is to make a user in SQL Server for that specific application. I also read you can make a client app connect to the database through SQL Server Native Client but then I need it installed on every PC. So I guess my question is, what is the proper way to do this?
Is there a best practice on how to connect to a SQL Server database from a 2-tier application?
394 Views Asked by Arne W At
1
There are 1 best solutions below
Related Questions in .NET
- file download method in visual studio 2017
- Repository manager receives the wrong connection string in .net core
- MongoDb not connecting C#
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Why Scanning GSI on DynamoDb doesnt work as fast as expected when using CONTAINS?
- Are "blittable types" really unmanaged types for StructLayout Sequential
- Failed to fetch dynamically imported module on Blazor JS Interop
- Problem to upload several images per one request
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Stripe connect payout - throws exceptions
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Socket.io nodejs server .NET connection
- Producer Batching Service Bus Vs Kafka
Related Questions in SQL-SERVER
- Dynamic query creation with Array like implementation
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl, ${SPRING_DATASOURCE_URL}: GitHub Actions
- PHP Laravel SQLServer could not find driver
- Upsert huge amount of data by EFCore.BulkExtensions
- How to locate relevant tables or columns in a SQL Server database
- Cannot delete SQL datafile (.mdf) as its currently in use
- Writing query in CTE returning the wrong output
- Group By Sum and without Group by sum Amount is different
- plan_handle is always different for each query in SQL Server Cache
- Adding a different string to a table fails
- The specified data type in the EF modelBuilder doesn't correspond to the one that is created
- SQL71561: SqlComputedColumn: When column selected
- How to Solve Error Associated with Trusted Authority
- SQL Server Data Model and Insert Performance
Related Questions in SQL-SERVER-NATIVE-CLIENT
- SQLNCLI.1 in connection string
- SQL server using Native Client 10.0 error
- Why is my Access 2013 ODBC SQL Server Data Source failing after a few minutes?
- Client Protocols and Alias missing on sql native
- Does MSSQL JDBC utilize server aliases
- ODBC DSN connection Error (SQL Server Native Client 11.0)
- SQL Server instance list in ODBC not populating
- SQL Server Native Client compatibility
- Could not retrieve table list. - SQL Server Import and Export - SQL Server Native Client RDA 11.0
- Unable to install SSIS on SQL Server 2016 due to SQL Server 2012 Native client error
- Is there any way to connect to SQL Server 2000 from SQL Server 2016 Profiler
- Where can I get SQL Server Native Client for Linux
- Error 80040e21 and DBBINDSTATUS_BADBINDINFO during bind after switching from SQLOLEDB to SQLNCLI or MSOLEDBSQL provider
- TSQL datetime versus datetime2 compatibility issue and the Native Client 11.0
- Connection string for SQL Server native client in ASP.NET web.config
Related Questions in 2-TIER
- 2-Tier Architecture (DataBase)
- Can we call firebase as a server?
- What are the security issues for exposing the database connection string at the client side for 2-tier applications
- How to combine pulgins for the same resource?
- c# - Paramaters with ObjectDataSource Control
- Oracle JDBC Tutorial - Want to understand 2 tier JDBC vs 3 tier
- Is a simple ASP.NET site using SQL Server known as 2-Tier Architecture?
- Is there a best practice on how to connect to a SQL Server database from a 2-tier application?
- Coursework help:
- Using VCL for the web (intraweb) as a trick for adding web interface to a legacy non-tiered (2 tiers) Delphi win32 application does make sense?
- Software Design: Tier 2 Application with ClientDataSet and Sockets
- Logging into Peoplesoft App-Designer in 2 Tier using LDAP authentication
- Would 2 tier be a valid choice for this scenario
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you are in a secure, lan enviroment, Windows auth is absolutely the way to go. This way you don't have a separate set of login credentials for every user, and you don't need login credentials stored/entered on the application, itself.
If you are in an over-the-internet situation, your should not be permitting direct connection to the SQL server at all.