borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (MSHFlexgrid With Bands)Next Topic (SQL Statements) New Topic New Poll Post Reply
AndreaVB Forum : Database : SQL PASSWORD
Poster Message
BRMC
Level: VB Lord


Registered: 28-11-2003
Posts: 210

icon SQL PASSWORD

HI all,
i made a program that connect with user "sa" to a SQL Server , but if anyone change password for user "sa" i'm not able to connect to the db.

Is there any way to retrieve password for one specified user in SQL?

Thank in advance
Bye

BRMC

____________________________
I don't mind not going to heaven
As long as they've got cigarettes
in hell

06-02-2004 at 04:02 PM
View Profile Send Email to User Show All Posts | Quote Reply
thirumalaicb
Level: Sage

Registered: 09-09-2003
Posts: 51
icon Re: SQL PASSWORD

hi BMRC

individual users are created and assigned with passwords. only those users are allowed access to the database server. if any dummy passwords are used then there is no way u can control it. give ur own password and do not tell it to others. i think this is the only way. but even then the database administrator or the owner can change it.



____________________________
Life is at Stake; Make the most out of it!

07-02-2004 at 12:26 PM
View Profile Send Email to User Show All Posts | Quote Reply
BRMC
Level: VB Lord


Registered: 28-11-2003
Posts: 210
icon Re: SQL PASSWORD

hi thi,
i know but what i mean is , my program create new sql user but for do this i must be server administrator , the problem is that i should create a way indipendent to the modify of the user "sa".

One way is to create a server administrator but the program must workj only with user "sa".
So i need to retrieve , if modified , his password.

Or there is another way

Thanks
Bye  

____________________________
I don't mind not going to heaven
As long as they've got cigarettes
in hell

12-02-2004 at 09:10 AM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: SQL PASSWORD

Well.... you could have a login on the SQL server that has read access to only one database (that no other login has access to)... then put the sa's password (encrypted!!!) in a table. Then have your program access the sa password DB, get & decrypt the password, then use it to connect as "sa"

but whatever... you'll have to have an account that has a non-changing password.

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

12-02-2004 at 09:19 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Database : SQL PASSWORD
Previous Topic (MSHFlexgrid With Bands)Next Topic (SQL Statements) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder