Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

connection string - special char in password

Posted on 2011-09-14
4
307 Views
Last Modified: 2012-08-13
the connection string
server=POSDET2;database=SAETPrep;UID=saetprep;PWD=SAET_PrepUser#3
but the app fails like the below..
Cannot open database "SAETPrep" requested by the login. The login failed.
Login failed for user 'saetprep'.

but in ssms, i see that i am able to login with the above credentials..

i see the password as _ and #.. could they be problematic?
0
Comment
Question by:25112
  • 3
4 Comments
 
LVL 14

Expert Comment

by:Christopher Gordon
ID: 36536702
Do you have a semicolon after the password in the connection string?
0
 
LVL 14

Expert Comment

by:Christopher Gordon
ID: 36536724
Sorry ignore my previous comment, looks like it doesn't matter.
0
 
LVL 14

Accepted Solution

by:
Christopher Gordon earned 500 total points
ID: 36536731
And to answer your question, you CAN use _ and # sign in your passwords for sql authentication.
0
 
LVL 5

Author Comment

by:25112
ID: 36536946
thanks for confirming- helps to isolate the issue.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question