.net - Allowed character for SQL Server CE password? -


in web application develop generate sql server ce database files , generate passwords. passwords generated using system.web.security.membership.generatepassword().

i assumed generatepassword generated suitable password strings since uses letters, digits , symbols. on http://msdn.microsoft.com/en-us/library/aa257373(v=sql.80).aspx find vague statement sql server ce passwords "can contain letters, symbols, digits, or combination."

but today password generated made impossible create database because connection string apparently had invalid characters. "&" precise.

i've searched net complete list of characters make white-list cleaning function, cannot find such info.

does have such list of valid characters sql server ce passwords?

i ended having make own simple password generator. blogged here

looks have xml issue. xml (or web.config) special characters are:

  1. quot "
  2. amp &
  3. apos '
  4. lt <
  5. gt >

also, if used in ole db or odbc connection string, login or password must not contain following characters: [] {}() , ; ? * ! @.

also, if requiring strong passwords must contains characters @ least 3 of following categories:

  1. english uppercase characters (a through z)
  2. english lowercase
  3. characters (a through z) base 10 digits (0 through 9) nonalphabetic
  4. characters (for example: !, $, #, %)

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -