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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:23:33+00:00 2026-05-31T12:23:33+00:00

I have a C# application which connects to a SQL Server database. Everything works

  • 0

I have a C# application which connects to a SQL Server database. Everything works well(select, insert, update, delete, etc.). I decided to take my application, database files to a new computer. I knew before that it wouldn’t work. I made changes to my application, tried connection string for attached database file, but no luck. It seems I need database driver. But it’s not the end. I need to set up database parameters(logins, instance, etc.).
Do I need to install SQL Server(I think it’s very bad practice) or is it possible to do it with installer programs? Any thoughts, links would be great. Thanks in advance.

  • 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-31T12:23:34+00:00Added an answer on May 31, 2026 at 12:23 pm

    if it’s a small/medium load program with no much SQL features in (and I think it is), I recommend you to use SQL CE (Compact Edition).
    it will be just a DLL that will be included in your program, and it has the driver required to connect to your database, with no other dependencies.

    introduction to SQL CE and VS2010 SP1: http://weblogs.asp.net/scottgu/archive/2011/01/11/vs-2010-sp1-and-sql-ce.aspx

    just make sure that you have VisualStudio 2010 with SP1 installed before installing SQL CE.

    SQL CE Download link: http://go.microsoft.com/fwlink/?LinkId=212219

    from ScottGu’s blog:

    SQL CE does not require you to run a setup or install a database
    server in order to use it. You can simply copy the SQL CE binaries
    into the \bin directory of your ASP.NET application, and then your web
    application can use it as a database engine. No setup or extra
    security permissions are required for it to run. You do not need to
    have an administrator account on the machine. Just copy your web
    application onto any server and it will work. This is true even of
    medium-trust applications running in a web hosting environment.

    SQL CE runs in-memory within your ASP.NET application and will
    start-up when you first access a SQL CE database, and will
    automatically shutdown when your application is unloaded. SQL CE
    databases are stored as files that live within the \App_Data folder of
    your ASP.NET Applications.

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

Sidebar

Related Questions

I have Winforms application written in C# which connects to a SQL Server Database.
We have an application written in Delphi 2010 which connects to SQL Server Database.
I have an application running in IIS which connects to a SQL Server 2008
We have a client running our .NET application which connects to SQL Server 2005
I have a ASP.Net Web Application which connects to a SQL Server. The web.config
I created a desktop application in C#/WPF which connects to a SQL Server 2008
I have an Java desktop application which connects directly with the DB (an Oracle).
I have made an application project in Visual Studio 2008 C#, SQL Server from
I have a database called MyDB in a Microsoft SQL Server 2008 Express instance
I've encountered a strange problem in Sql Server. I have a pocket PC application

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.