Re: Not able to connect to SQL Server
From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 10/08/03
- Next message: Tore Eriksmoen: "Getting the users fullname (Display Name in AD)"
- Previous message: Govind: "Need guidence"
- In reply to: Sandy: "Re: Not able to connect to SQL Server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 8 Oct 2003 09:46:36 +0300
Hello Sandy,
This suggestion is actually about administration and not so much about
coding. As far as I remember, the account ASP .NET runs your applications
under is configured in the machine.config file. You should probably refer to
an MSDN section on ASP .NET security for the details.
The SQL server is configured to accept a certain account through its
Enterprise Manager facility (well, unless you are in deep love with command
line tools or system stored procedures :-). You should create a new login
and then create a user in the database that would correspond to that login
(usually when you specify which databases the login will have access to, the
appropriate users will be created for you).
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Test Studio http://x-unity.miik.com.ua/teststudio.aspx Bring the power of unit testing to VS .NET IDE "Sandy" <sdemuth@earthlink.net> wrote in message news:24d2201c38d2c$e10674c0$a601280a@phx.gbl... > Hello Dmitriy! > > Thanks for your response. > > How do I go about writing the code using your last > suggestion: > > . . ."Or you can have ASP .NET run your web application > under a domain account which will be able to log in to > the SQL box, and set up the SQL server to recognize this > login."? > > Sandy
- Next message: Tore Eriksmoen: "Getting the users fullname (Display Name in AD)"
- Previous message: Govind: "Need guidence"
- In reply to: Sandy: "Re: Not able to connect to SQL Server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|