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 7636065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:34:47+00:00 2026-05-31T07:34:47+00:00

I am developing a Winforms application compiled for the .NET 4 framework. The application

  • 0

I am developing a Winforms application compiled for the .NET 4 framework. The application accesses SQL Server using typed Datasets and an encrypted connection string.

Out of curiosity, I open the executable file in a binary editor and noticed that I was able to view the SQL queries from the datasets as plain text. I am concerned that this opens up a security issue – for example, someone changes “select * from mytable” to “delete from mytable”.

What is the best way of preventing this? The general consensus on obfuscation seems to be “don’t bother”, but surely this is a security nightmare just waiting to happen? Are there any best practices or tools that anyone can recommend?

  • 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-31T07:34:48+00:00Added an answer on May 31, 2026 at 7:34 am

    I guess to store SQL as strings is never a good way to deal with DBs but this is a out-of-topic sentence. A malicious user anyway can’t really change your code because a .NET assembly should be signed (and then not modifiable). I guess that was just an example (why they should change a create table to a delete table?). This isn’t true for a native application (or for SQL code that comes from other unverified locations. If everything you can do to save your database has been done on the…DB side then you can start to protect your program. If you really can’t avoid to inject pure plain SQL in your code you have to sign your assemblies. If you need to “hide” that SQL you may think to put it in an encrypted text resource file (but I do not think this is your case).

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

Sidebar

Related Questions

I am developing a winforms application using .NET 2.0 and Sql Server 2005. I
I am developing a Client-Server application using C# .NET Winforms with SQL Server 2008.
I'm developing application WinForms .net 4.0 using C# and the backend is SQL Server
I'm developing a VB.NET WinForms application, and I'm using lots of small 16x16 32bit
I am developing an .net Winforms application and I need to secure the connection
I'm developing a WinForms application (.Net 3.5, no WPF) where I want to be
Developing a .NET WinForms application: how can I check if the window is in
We are developing a multilingual Winforms application using visual studio 2008. I am trying
I am developing a Windows .NET application (WinForms) and I need to simulate a
I'm developing a .NET application that will have both a WinForms and a Silverlight

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.