Mr Bean,
Why not just open up a login dialog, where they enter their username and
password? Then, you can attempt to call a stored procedure on the database.
Make the stored procedure available to everyone in the app. This way, if
the connection string is wrong (username and password), then the call to the
stored procedure would fail, and you know the login is invalid.
I would recommend using windows logins instead though (you can do it
against the local machine, or AD, I believe, if you dont want to add those
users to the domain), since it is more secure (no username and password in
the connection string).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Mr. Bean" <mk*****@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I made a small windows C# application that has dB functionality. The dB
I'm using is SQL 2000. It worked very fine. The thing I need is to
enable the user to enter the sql server's username and password(many
users with different priviledges and functionality) at runtime b4
proceeding with the application execution using a configuration file or
using a simple form... Any Ideas? If anybodty has links or sample
please forward it to me.