473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Check user's password of MSDE

ad
I am using MSDE as the database of my program.

At the begin of my program, it must display a form for user to enter the
password

After the user enters the password, I will check the password, if it is the
correct password of a user of MSDE

..

In order to check the password; I must get the password of a user of MSDE in
the first.

How can I get the password of a user of MSDE? Like that I have a sa2 in MSDE
, how can I get the password of sa2?

Nov 16 '05 #1
4 2667
psg
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
In order to check the password; I must get the password of a user of MSDE
in
the first.


Why don't you try to connect with username and password that user provided
and let MSDE to check if they are correct? Then you won't need to know user
passwords.

RGDS PSG
Nov 16 '05 #2
From a security perspective that's a very bad approach. You should attempt
to log in with those credentials passed and than let MSDE check the
Password. If the password is an error an exception will be thrown.

Amy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
I am using MSDE as the database of my program.

At the begin of my program, it must display a form for user to enter the
password

After the user enters the password, I will check the password, if it is the correct password of a user of MSDE

.

In order to check the password; I must get the password of a user of MSDE in the first.

How can I get the password of a user of MSDE? Like that I have a sa2 in MSDE , how can I get the password of sa2?

Nov 16 '05 #3
ad
But there are many situations when we fail to login MSDE, like the MSDE is
stop or the net is disconnected

How can I confirm the failure is caused by incorrect password?

"Amy L." <am**@paxemail.com> ¼¶¼g©ó¶l¥ó·s»D
:OA**************@TK2MSFTNGP10.phx.gbl...
From a security perspective that's a very bad approach. You should attempt to log in with those credentials passed and than let MSDE check the
Password. If the password is an error an exception will be thrown.

Amy.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
I am using MSDE as the database of my program.

At the begin of my program, it must display a form for user to enter the
password

After the user enters the password, I will check the password, if it is the
correct password of a user of MSDE

.

In order to check the password; I must get the password of a user of

MSDE in
the first.

How can I get the password of a user of MSDE? Like that I have a sa2 in

MSDE
, how can I get the password of sa2?


Nov 16 '05 #4
psg
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uI**************@TK2MSFTNGP14.phx.gbl...
But there are many situations when we fail to login MSDE, like the MSDE is
stop or the net is disconnected

How can I confirm the failure is caused by incorrect password?


Just handle an exception message (message from MSDE about error type).
When MSDE is down you will probably get error no. 17 "Connection failed...
Server does not exist or access denied.", when it is up, but wrong
user/password error no. 18456 "Login failed for user ...".

RGDS PSG
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sam | last post by:
I have installed msde 7.0 on a pc with win98. Someone has changed sa password How can I reset sa password? I'm unable to logon with trusted connection because the pc is not nt. Thanks
6
by: John Morgan | last post by:
I urgently need tom use SP3a upgrade the instance of SQLServer200 MSDE runing on my local machine but I am having problems in doing so. My first problem is that when I start the set up procedure...
1
by: NWx | last post by:
Hi, I'm an old developer, but didn't used SQL Server or MSDE to much before. I have NetSDK instance of MSDE installed on my PC by Net Framework SDK. All quickstart samples access it using...
8
by: Gabor | last post by:
Hi, I have an app. that uses an MSDE database. I hardcoded the login and password in the application, but it is very simple to see with an ILDASM.exe tool. Is it any procedure to obscure the...
9
by: Tiraman :-\) | last post by:
Hi Every one, i have a login form which collect user and password from the user And i would like to give the user an option to remember his user and password for the next time. what is the...
2
by: Nikolay Petrov | last post by:
I have an app with text boxes used to change user password Textbox1 - old password Textbox2 - new password Textbox3 - new password second time What I need is how to check if the newely created...
2
by: Terry Olsen | last post by:
I need to know how to create a user in MSDE. I can't seem to get the syntax correct. I've tried several different variations such as the following, but nothing seems to work. CREATE USER user...
2
by: eddie | last post by:
Hi Guys, We've lost the password for the sa. No other users belong to the admin group. I've tried logging in using osql -E (windows authentication) without success. Is there anyway to reset the sa...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.