Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6723041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:31:16+00:00 2026-05-26T09:31:16+00:00

Simple and contrived example: C# desktop application talks to SQL Server database. All orders

  • 0

Simple and contrived example:

C# desktop application talks to SQL Server database. All orders exist in Orders table.

Application views, creates and amends orders. In this example a user can only amend their own orders.

Concerns:

Storage of connection string if using dedicated sql credentials.
Even if user credentials are used, application security could be bypassed by connecting directly through Excel or Access.

Solutions:

Provide access to SQL through web service/middleware only. Good, but not necessarily viable in this case.

Encrypt connection string in application somewhere. Not hugely secure, security through obscurity.

Secure database by granting access to specific stored procedures, views, etc and no access to actual tables. SP’s and views take into account the user’s rights/credentials. Pretty awful. Ok for simple examples (Select where user , becomes complicated once you introduce users in different groups, manager relationships, etc.

Alternatives:

How would you approach this?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:31:16+00:00Added an answer on May 26, 2026 at 9:31 am

    Even if user credentials are used, application security could be
    bypassed by connecting directly through Excel or Access

    what do you mean? you should not allow users to connect to SQL Server directly or with Excel or Access. They should NOT know the sa or other password.

    After this, surely you could encrypt some sections of your app,config so that nobody can see its content.

    I would really have the logic that a user can only modify his/her own Orders at the application level. Could be done also in the stored procedures I guess but it depends and more details should be known about this to suggest the best or most appropriate approach.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple question, how do you list the primary key of a table with T-SQL?
Take this simple, contrived example: UserRepository.GetAllUsers(); UserRepository.GetUserById(); Inevitably, I will have more complex queries,
I just need a simple clarification: I have an example application with a Model
To keep it simple, I'll use this contrived example class (the point is that
Simple ASP.NET application. I have two drop-down controls. On the first-drop down I have
Simple question: Can a swing frame be completely modal ( block all others windows
A contrived example: signature A = sig type t val x: t end signature
This is a somewhat contrived example meant to show a point. Here are two
My simplified and contrived example is the following:- Lets say that I want to
Contrived example to illustrate: (def nest1 {:a {:b {:c foo}}}) (def nest2 {:d {:e

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.