Click here to Skip to main content
15,920,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed a window application in C# as front end and on back end i used sql server 2012,
now i installed it on client pc, although i have enabled 'sa' account and gave it a strong password. but still user can login into database by window authentication. how i can secure my database. Please help any one with detail. thanks
Posted
Comments
Praveen Kumar Upadhyay 8-Dec-14 1:25am    
you can use a difficult encoding to store the connection string which is visible to client or pull the connection string from an API in your code.

1 solution

You cannot "secure it". There is no such thing as miracle. You are not controlling the access to the database, your customer does, because "desktop application" normally means the it is used on the customer hardware, not yours (which would be a case if it was Software as a Service, for example). You either give your user the access or not. Isn't that logical? And now, one big and important general advice: if someone suggests you don't buy the idea of using security through obscurity. Better, read about it: http://en.wikipedia.org/wiki/Security_through_obscurity[^].

—SA
 
Share this answer
 
v2
Comments
Abdullah Kundi 8-Dec-14 2:43am    
i have worked on this database for one year, if some other developers will hack my database then why i worked for one year on this database?
Sergey Alexandrovich Kryukov 8-Dec-14 15:36pm    
You simply don't understand the essence of software development and engineering. If your work is needed for your customers, the hacker don't matter. Why would you afraid of them? Think about it.

And also, please forgive me my unpleasant doubt, but... are you sure that your work, for just one year is so valuable that it can be of any interest to hackers? Perhaps you should better read less tabloids.

I suggest your accept my answer formally and use it in your work. Or do you think someone can create a miracle for you?

—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900