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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:41:28+00:00 2026-05-11T20:41:28+00:00

When I try adding a new data source to my project I get a

  • 0

When I try adding a new data source to my project I get a prompt saying “The connection you selected uses a local data file that is not part of the current project. Would you like to copy the file to your project and modify the connection?”

This sounds rather obscure to me, as I’m new to VB.NET and programming non-script apps in general. The data source in this case is a .sdf SQL CE file.

Question 1: If I say that I want to copy the database to the project, what will happen after I compile the app, where the database will be? (how will I edit it from another app?)

Question 2: If I do not include it, how the data source will still keep linked? Can I link using filesystem enviroiment variables like %ProgramFiles%\MyAppDir?

Question 3: Can I just tell it to use a read-only (Just needs to read it) data source on the web, like on an FTP?

Thanks for help 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-11T20:41:29+00:00Added an answer on May 11, 2026 at 8:41 pm

    Visual Studio just tries to have all your files in one place, with the rest of them – in project folder.

    Q1 – SQL Ce database can be anywhere you like, you use ConnectionStrings settings section in your app.settings. SQL Ce is just a file, nothing more, nothing less, therefore accessible from any application. Is is not compiled into your app, it just travels with it when you deploy etc.

    To answer Q2 – you probably can, but I’m not sure that it will work automatically for you.

    Q3 – to read from ftp, probably not, unless you work ftp client support into your app and download it in background. Another solution would be to map ftp to local drive and access it from there.

    For example, storing connection string in app.config (excerpt from app.config):

    <connectionStrings>
       <add name="db" connectionString="Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0; data source=c:SomePathToSDFfile" />
    </connectionStrings>
    

    Later in your application, you access this connection string like this:
    (add reference to System.Configuration)

      Dim c As Configuration.ConnectionStringSettingsCollection
      Dim cn As SqlClient.SqlConnection
    
      c = Configuration.ConfigurationManager.ConnectionStrings
      cn = New SqlClient.SqlConnection
      cn.ConnectionString = c.Item("db").ConnectionString
      cn.Open()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 173k
  • Answers 173k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm a little confused by your test since you are… May 12, 2026 at 2:38 pm
  • Editorial Team
    Editorial Team added an answer I know that this question is ancient, but hell -… May 12, 2026 at 2:38 pm
  • Editorial Team
    Editorial Team added an answer Blob storage is definitely the place to put dynamic images… May 12, 2026 at 2:38 pm

Related Questions

I have a user control (.ascx) in my project that I am adding to
I am running into an issue with a FileSystemWatcher when multiple files are placed
I am facing some issues while serializing objects (I am using JBoss Drools, and
I'm trying to pass an instance of a class between two separate classes, like

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.