assimang
Programmer
- Mar 11, 2008
- 96
Hello everybody,
I am creating an application which interacts with a dadabase typing.mdf created in Microsoft SQL Server Management Studio Express 2005.
One table of typing.mdf is Users with two fields UserID and PasswordID.
The purpose of Users table is that when the application runs I load a login form. Well, if a user opens the application for the first time, he has to enter a username and a password that will be stored in users table in typing database, then the program checks if username is available which means that there is not stored in users table in typing database, and if it is username and password are storing in database. Else if he is not using the program for the first time, he enters his username and password and the program checks if the user exists in users table and logins. My first question is how many characters should be the username and password and which characters are not allowed for username and password?
And the second question, must I have to set username’s and password’s values to connection string in my code?
Thanks in advanced.
I am creating an application which interacts with a dadabase typing.mdf created in Microsoft SQL Server Management Studio Express 2005.
One table of typing.mdf is Users with two fields UserID and PasswordID.
The purpose of Users table is that when the application runs I load a login form. Well, if a user opens the application for the first time, he has to enter a username and a password that will be stored in users table in typing database, then the program checks if username is available which means that there is not stored in users table in typing database, and if it is username and password are storing in database. Else if he is not using the program for the first time, he enters his username and password and the program checks if the user exists in users table and logins. My first question is how many characters should be the username and password and which characters are not allowed for username and password?
And the second question, must I have to set username’s and password’s values to connection string in my code?
Thanks in advanced.