Re: Delpoyment Issue



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]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"Mr. Bean" <mkhiami@xxxxxxxxx> wrote in message
news:1139235833.346222.25780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.



.



Relevant Pages

  • Is it possible to do Authentication with ASP.NET / C# over IIS ?
    ... I try to solve a problem: Some folder on an IIS Webserver should be ... But I want to have a SQL ... database with the users which are allowed to login and just ONE System ... Make a login page and check Username and password against the entries ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Creating Customer Web Portal
    ... Roles and Profiles system that integrates with the database ... which a stored procedure builds for us. ... I want a simple login page with username and password. ...
    (microsoft.public.frontpage.addins)
  • SQL 2000 login problem
    ... I have a remote user that can login to SQL 2000 using ... the sa username and password, but cannot login with the username and ...
    (microsoft.public.sqlserver.security)
  • Re: Login account in two servers
    ... Looks like the Login and user chan has lost. ... Have a look in SQL server ... books online for the usage of the stored procedure. ...
    (microsoft.public.sqlserver.server)
  • Re: "Must declare the scalar variable @Nickname"...
    ... sql doesn't add him and if not ... Regards. ... > Look my stored procedure: ... > I just want to verify if the username already exists.. ...
    (microsoft.public.dotnet.framework.aspnet)