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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:45:35+00:00 2026-05-27T04:45:35+00:00

Exactly what the title says. Here’s my connection string: \SQLEXPRESS;Database=GGDBase;Integrated Security=SSPI;Trusted_Connection=true;Persist Security Info=False; The

  • 0

Exactly what the title says.

Here’s my connection string:

\SQLEXPRESS;Database=GGDBase;Integrated Security=SSPI;Trusted_Connection=true;Persist Security Info=False;

The program is supposed to fill-in the Server Name, in front of the “\”. Running it on my computer, where SQL Server is installed, that piece of code works fine.

Running it on a computer connected to mine via a network, well, the problem in the title happens. I’ve set my SQL Server to Mixed (SQL and Windows Authentication), and the problem still happens. I’ve also enabled the TCP/IP and all other stuff in the Server config manager.

I know that one of the answers is to ‘make a user’ or something, and provide a username and password of some sort, but if I’m to fiddle around in the SQL Server Management, that means whoever would want to install and run my program would also have to mess with a very user-unfriendly SQL server. Something that my professors will not allow.

So I humbly ask, is there some way I can eliminate this problem by using codes in C#?

Basically, what my professors would want is:

  • Install / copy-paste the program on all machines.
  • Install SQL Server Express on the server. Minimal stuff to do.
  • Run the program and it will just work.

Thanks for any and all answers.

  • 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-27T04:45:35+00:00Added an answer on May 27, 2026 at 4:45 am

    If I understand correctly you want to have an app that will run on lots of diff computers with all of them connecting to a single SQL Server Database on a server.
    If all the computers are part of the same Domain or Workgroup then you can use Windows Integrated Security otherwise you will have no choice but to use SQL Server Authentication.
    You can just set up a single SQL Server account on the server with the appropriate permissions and then in C# you can create the connections string like this.

            SqlConnectionStringBuilder connString = new SqlConnectionStringBuilder();
            connString.DataSource = ServerHere;
            connString.InitialCatalog = DBHere;
            connString.IntegratedSecurity = false;
            connString.UserID = SQLUser;
            connString.Password = SQLPassword;
    
            return connString.ConnectionString;
    

    and your app can take it from there.

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

Sidebar

Related Questions

Exactly what the title says...........any thoughts on other good options for relational database implementation
Exactly what the title says. Note, this is not about subscriptable objects.
Exactly what the title says. I'm using MSVC++ 2008 express, and my class constructor
Exactly what my title says is the problem Im having right now. Im checking
Exactly what the title says. Is it possible to use Facebook Connect (or any
As the title says, I have exactly the same code needs to run in
The title says it. I'm looking for a way to determine exactly which file/registry
As the title says: What's best way of converting a string from any-case to
Basically the problem is exactly what the title says. My app works smoothly on
Exactly as the title says, why does Core Data create instances of NSManagedObject with

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.