|
-
Jan 15th, 2003, 09:44 AM
#1
Thread Starter
New Member
Connection string
Hi,
I'm bulding a connection string to connect to database. My problem is that the password have a questionmark (?) inside.
(IE : pass?ord)
In Query Analyser, I simply put pass'?'ord and the connection is ok.
In ado.net, if I put ";password=pass'?'ord", I get a message that this there is invalide caractères. If I didn't put the quote, I get a message that the connection is invalide.
Someone have an idea ?
Stéphane
-
Jan 15th, 2003, 09:47 AM
#2
using pass?ord as a password is not very secure..... I'd change it.....
-
Jan 15th, 2003, 09:50 AM
#3
Try
pass''?''ord
(That's two single quotes, not a double quote)
-
Jan 15th, 2003, 09:50 AM
#4
Thread Starter
New Member
Security
pass?ord is just a sample
In reality, the password would be like s2*k8u?ud
-
Jan 15th, 2003, 09:51 AM
#5
On second thought, also try
pass'''?'''ord
(three single quotes)
Also, do as techgnome says.
-
Jan 15th, 2003, 09:54 AM
#6
Thread Starter
New Member
Error
Doesn't work with 2 or 3 quotes:
Message :
"Expected ';' delimiter in connection substring 'Data Source=XXX; Initial Catalog=XX;user id =XX;password='''?'''xx'."
-
Jan 16th, 2003, 04:17 AM
#7
Hyperactive Member
One alternative could be to limit password characters only to alphnumerics and not to use special characters or punctuation signs...
-
Jan 16th, 2003, 04:18 AM
#8
Thread Starter
New Member
Limitation
Yes, I know !
But I'm not the DBA ! I have to work with this password !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|