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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:57:18+00:00 2026-05-24T15:57:18+00:00

I have written a C# program in Visual Studio 2010 . I use database

  • 0

I have written a C# program in Visual Studio 2010. I use database for my program by add service-based Database in VS2010. I make setup by add setup item for program. In my computer the program installed successfully and run very good. but in another machine after installing program when I want to work with database of program, 1 exception happened:”the program can’t find sql…..” and some errors like this.

Connection string is: (in single line)

"Data Source =.\\SQLEXPRESS;
 AttachDbFilename=|DataDirectory|\\database.mdf;
 Integrated Security=True;
 User Instance=True"

Also I included database.mdf file into setup files, but this problem has not been sloven.
what’s my connection string must be? Is this exception for that string?

  • 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-24T15:57:19+00:00Added an answer on May 24, 2026 at 3:57 pm

    The data source \SQLEXPRESS shows me that you’re using a SQL Server Express Edition installed to your machine. When you distribute the program along with the database file, the SQL Server Express Edition must be installed on the target machine. Try using an embedded database like SQLlite if this is not desired, otherwise include SQL Server Express Edition within your installer.

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

Sidebar

Related Questions

I have written a program in C# using Visual Studio 2010. At current it
I'm using Visual Studio 2005. I have a program written in C#. When I
I have a data acquisition program written in C++ (Visual Studio 6.0). Some clients
Visual Studio C++ 2008 / GCC 4.4.2 I have written a program to run
I have a program written in VB.Net with Visual Studio 2008. I have one
I have application written in C# WinForms developed in Visual Studio 2010 Professional. I
I have installed Visual Studio 2010 and Office 2007. When I go to Add
I have a Visual Studio 2010 C++ program, the main function of which is:
I have a program written in C# (Visual Studio), that works on a tray.
I'm currently using the Visual Studio Installer (Setup Project) in Visual Studio 2010 as

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.