J
Jon S via DotNetMonster.com
Hi all,
I'm producing a database connection string but I need a way to establish if
the database has a password or not. There are two versions of the database
I'm opening, the first doesn't have a password and the second does. So if
the database has a password then open it with a string that includes a
password, else open it with a string that doesn't include a password. How
can I find out if the database has a password before I try and open it???
I'm using ado.net and C#.
Thanks in advance,
Jon.
I'm producing a database connection string but I need a way to establish if
the database has a password or not. There are two versions of the database
I'm opening, the first doesn't have a password and the second does. So if
the database has a password then open it with a string that includes a
password, else open it with a string that doesn't include a password. How
can I find out if the database has a password before I try and open it???
I'm using ado.net and C#.
Thanks in advance,
Jon.