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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:00:56+00:00 2026-06-03T04:00:56+00:00

How validate that a connection string entering by a user is for Sql Server

  • 0

How validate that a connection string entering by a user is for Sql Server 2008? I’m using C#.

  • 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-03T04:00:56+00:00Added an answer on June 3, 2026 at 4:00 am

    I don’t know why you need to validate or users are entering a connection string but you can find connections strings for sql 2008 from below link.

    http://www.connectionstrings.com/sql-server-2008

    Standard Security
    Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
    Use serverName\instanceName as Data Source to connect to a specific SQL Server instance.
    Are you using SQL Server 2008 Express? Don't miss the server name syntax Servername\SQLEXPRESS where you substitute Servername with the name of the computer where the SQL Server Express installation resides.
    
    COPY
    
    Standard Security alternative syntax
    This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents.
    Server=myServerAddress;Database=myDataBase;User ID=myUsername;Password=myPassword;Trusted_Connection=False;
    
    COPY
    
    Trusted Connection
    Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;
    
    COPY
    
    Trusted Connection alternative syntax
    This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents.
    Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;
    
    COPY
    
    Connecting to an SQL Server instance
    The syntax of specifying the server instance in the value of the server key is the same for all connection strings for SQL Server.
    Server=myServerName\theInstanceName;Database=myDataBase;Trusted_Connection=True;
    
    COPY
    
    Trusted Connection from a CE device
    Often a Windows CE device is not authenticated and logged in to a domain. To use SSPI or trusted connection / authentication from a CE device, use this connection string.
    Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;User ID=myDomain\myUsername;Password=myPassword;
    Note that this will only work on a CE device.
    Read more about connecting to SQL Server from CE devices here
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What regular expression can I use (if any) to validate that a given string
I have a page that uses an AJAX request (using Prototype's Ajax.Request()) to validate
I have a SQL Server that holds a lot of data. An application, running
i have an spring web application (on glassfish server) that use JDBC connection pool.
I have two Dictionary<string, byte> properties in my model that should validate properly with
I'm writing an application where a user provides a connection string manually and I'm
I have the following regexp that I am using to validate an email; @Pattern(regexp=[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?,
How can I validate that my ASPNET AJAX installation is correct. I have Visual
I'm trying to validate that a submitted URL doesn't already exist in the database.
How do I validate that the LOGNAME is present in a bash script if

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.