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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:30:24+00:00 2026-05-28T19:30:24+00:00

I am trying to create a simple offline application for personal-use that uses a

  • 0

I am trying to create a simple offline application for personal-use that uses a SQL Server Compact 3.5 database and I plan to use Linq-to-SQL to work with it. I have used SQLMetal (through the application SqlmetalBuilder) to create a dbml file, and have added it to my project.

The problem I am having is that, unlike the O/P Designer (which you cannot use on SQL Server Compact files), SQLMetal creates code that requires me to enter the connection string when instantiating a DataContext.

How do I find out what the connection string is? I have looked but I can’t find the answer… And if there is a way to create the code so that I don’t have to enter the connection string (this app is not to be distributed), any advice would be appreciated.

  • 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-28T19:30:27+00:00Added an answer on May 28, 2026 at 7:30 pm

    SqlMetal.exe (Code Generation Tool)

    See Connection Options:
    /conn: connection string.

    Update:

    SQL Server Compact 3.5 and Visual Studio (look for connection string).

    You can pass the connection string to the constructor of DataContext class.

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

Sidebar

Related Questions

I'm trying to create a simple Add-On for SQL Server 2008; it is simply
I'm trying to create simple DER decoder - console application that just outputs content
I am trying to create a simple page that enters data in to a
I'm trying to create a simple database table using the PHP MySQL query Create
I'm trying to create an offline HTML5 test application, and am playing with the
Just trying to create a simple method that counts up 1 on the tally
Im trying to create a simple loop that creates 50 buttons, adds them to
I am trying to create a simple style that highlights the focused UI Element
Trying to create a simple plugin that simply connects to an ftp site, looks
I am trying to create a SIMPLE plugin, no interface is necessary, that will

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.