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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:07:42+00:00 2026-05-27T14:07:42+00:00

In web.config: <add name=conn providerName=System.Data.SqlClient connectionString=Server=SERVERNAME; Initial Catalog=INITIALDB; UID=username; PWD=+abc-def(; /> I ensured that

  • 0

In web.config:

<add name="conn" providerName="System.Data.SqlClient" connectionString="Server=SERVERNAME; Initial Catalog=INITIALDB; UID=username; PWD=+abc-def(;" />

I ensured that the username has db_owner role in the INITIALDB, by deleting the database user and recreating it. I ensured that the username password worked, by connecting to the server via SSMS (using the above UID and PWD) and expanding the database.

Any ideas? I’m at my wits end and I cannot change the password assigned to me very easily… I don’t think any of those characters need escaping but clearly there is a problem.

UPDATE:

The error had nothing to do with the password characters. I was getting “Cannot open database … requested by the login. The login failed …” However — the connection worked perfectly when I removed the “Initial Catalog” or “Database” section from the connection string. Turns out that the database had a .MDF filename that was different than the name of the database (e.g. my_db_name and db_name.mdf). Somehow the connection string that specified the Database or Initial Catalog property was unable to connect because of this. Detaching, changing the MDF filename to be consistent, and re-attaching the database actually sorted the problem. Strange, right?

  • 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-27T14:07:43+00:00Added an answer on May 27, 2026 at 2:07 pm

    Use the password this way: &quot;+abc-def(;&quot;

    like:

    <add name="conn" providerName="System.Data.SqlClient" connectionString="Server=SERVERNAME; Initial Catalog=INITIALDB; UID=username; PWD=&quot;+abc-def(;&quot;" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my Web.config file <membership> <providers> <clear /> <add name=AspNetSqlMembershipProvider type=System.Web.Security.SqlMembershipProvider connectionStringName=ApplicationServices maxInvalidPasswordAttempts=5
at web.config <section name=FlowWebDataProviders type=FlowWebProvidersSection requirePermission=false/> <FlowWebDataProviders peopleProviderName=sqlProvider IzmListProviderName=sqlProvider> <PeopleProviders> <add name=sqlProvider type=SqlPeopleProvider connectionStringName=FlowServerConnectionString/>
In my web.config, I have specified <services> <service name=Querier.WCF.Querier behaviorConfiguration=QuerierServiceBehavior> <host> <baseAddresses> <add baseAddress=http://myserver:8000/SearcherService/>
In my web.config file I have: <siteMap defaultProvider=MvcSiteMapProvider enabled=true> <providers> <clear /> <add name=MvcSiteMapProvider
I am trying to add a virtual directory to my web config file so
I am wondering is this normal when you add this into your web.config <location
What is the minimum I need to add to a .NET 2.0 WebSite's web.config
I have a UserControl which I have added to my web.config <add tagPrefix=BCF src=~/controls/MyMessageBox.ascx
Currently I'm registering every user control separately in Web.config <pages validateRequest=false> <controls> <add tagPrefix=cc1
Q1 To configure membership provider, you also have to add section to your web.config

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.