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

  • Home
  • SEARCH
  • 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 9209471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:51:03+00:00 2026-06-18T00:51:03+00:00

hi i am new to c# and i am a student learning c# from

  • 0

hi i am new to c# and i am a student learning c# from last 3 month and when starting my small project i created a service based database and use to store the values in the tables. in my app i am only dealing with the tables. and queries which will be working on a single machine. i am generating a project which only will be working on a single machine. so i now realised diffrence between service based database and local database
**A service-based database is a database that is only accessed through a server. It uses an MDF data file, which is SQL Server format. To be able to connect to a SQL Server database the SQL Server service must be running, because it’s that that processes your requests and access the data file.

A local database is one that is local to your application only. It uses an SDF data file, which is SQL Server CE (Compact Edition) format. There is no need to install a server to access an SDF database**
but i formed the whole project with the service based database and used all queries which is select and update. and i used this code

connectionString = @"Data Source=.\
    SQLEXPRESS;AttachDbFilename=E:\project\Database1.mdf;Integrated 
    Security=True;User Instance=True";
sqlConnection = new SqlConnection(connectionString);

but when shifting to .sdf file means to local database i just have to replace the new connection string? does it reflects to any of the functioning?

  • 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-06-18T00:51:04+00:00Added an answer on June 18, 2026 at 12:51 am

    If the databases structures are the same, your code (potentially) has to be remain the same.
    The only thing has to be changed is the connection string.

    There are other type of issures that can make difference between local and server side storage like:

    • external process invokation
    • file access
    • performance

    and so on..

    But from functional (generic) point of view , your program should change only connection string.

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

Sidebar

Related Questions

So, I'm a brand new CS student, on a Mac, and I'm learning C++
I am a co-op student learning vb.net and I have a project which retrieves
I'm learning JQuery. I'm a new Jquery Student as it is seen. This is
public static ArrayList GetStudentAsArrayList() { ArrayList students = new ArrayList { new Student() {
EDIT : proper solution: void add(Student s) { if(root == null) root = new
I am completely new to Web Development, still a student. Kindly bare this extremely
I'm very new to Web server matters, and relatively a naive student of C++.
Brief Context: Hi, I am a university student (behind proxy 10.3.100.211:8080), new to ROR,
New to PHP and MySQL, have heard amazing things about this website from Leo
I am a computer science student learning Java, so I do some work at

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.