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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:07:32+00:00 2026-05-17T03:07:32+00:00

I have created a SQL DB-based winforms application, and I want to deploy it

  • 0

I have created a SQL DB-based winforms application, and I want to deploy it on a client machine. The program is a single user desktop application.

Opinions in this post suggest it’s better to use SQLite or SQL Server Compact Edition in such scenarios. However, I prefer to use stored procedures, which are not supported in those products.

My question is about security concerns:

  • If I use an Access database, I can set a password for the database so at least non experienced users cannot view database directly.
  • How can I deploy a Winforms app to install SQL Server 2005 Express Edition and set password for my .mdf database file?
  • What installers support this request? clickonce, windows installer, installshield, etc?
  • 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-17T03:07:33+00:00Added an answer on May 17, 2026 at 3:07 am

    The .mdf isn’t executing as an .mdb is. In other words, you won’t need to configure your .mdf file, with a password, as SQL Server will handle the security for authentication and authorization.

    Access won’t help much with your desire to stick with stored procedures, unfortunately.

    Suggest that there are too many potential issues with deploying SQL Server Express alongside your app. It may be the case that the value of stored procs, in this case, may not be enough to warrant the hassle of installing SQL Server Express.

    Evaluate the work being done inside those stored procs. Are they CRUD only, or much more complex. What is your reason for stored procs in this single-user app?

    Consider re-architecting your application to:

    • use parameterized queries. Move the body of the stored procs into a constant string.
    • SQL Server Compact Edition

    Balance the time-to-refactor with the potential customer-support issues!

    Please consider the blogpost by Steve Lasker (Stored Procedures & SQL Server Compact-The Great Debate). It’s got some great insight on assessing whether stored procs are the right tool for the job in regards to client applications.

    Some Updates:

    It sounds like you are trying to avoid that .mdf getting out of your hands. You CAN take some measures to lock down the data within – encryption of the data, but there isn’t a 100% solution to avoid your .mdf being taken elsewhere. As you comment, once it’s in the customer’s hands, it’s out of yours. 🙂

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

Sidebar

Related Questions

I have a table created in sql. but in my application I am using
I have created one user named tuser with create database rights in SQL server
I have created and Excel 2007 based dynamic charting application that that charts various
I have created SQL Server database by Visual Studio 2010 Ultimate means in Visual
I have created SQL Server 2008 Database project using visual studio 2010. after build
I have a database that I have created using SQL Server Developer 2008. I
I have created a T-SQL query in SQL Server 2008 R2 that is a
I have created a cube in Sql Server Analysis Service. I have a table
I have created my database by this sql query: (CREATE DATABASE + DBName +
I have created a keyword search in SQL that takes a list of keywords

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.