Ask a Question related to ASP.NET Security, Design and Development.
-
vlad #1
Not associated with a trusted SQL Server connection
We are running SQL server 2000 on MS Windows Server 2000. We have web based
database (ASP.net and SQL Server 2000). When I run this page with 'sa'
account, It works but when I change it to Window autointoxication I am
getting the following error massage.
Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection.
I don't want to use 'sa' account. Please let me know how to solve this
problem.
vlad Guest
-
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
I am pulling my hair out..... I am trying to put a bound data grid on a webform... I have 4 data connections in my server explorer, all of which... -
Reason: Not associated with a trusted SQL Server connection.
Hello all, I posted this on SQL newsgroup as well, not sure who may know the answer. I'm developing a asp.net program. Everything works great,... -
Login failed for userReason: Not associated with a trusted SQL Server connection.
using asp.net writing an application to retrieve records from SQL Database but giving error as mentioned in my subject i have kept the settings to... -
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection
Hello, Some time ago I posted a message here about my problem: after upgrading the domain controller to Windows Server 2003, I couldn't use the... -
Newbie Question - "trusted SQL Server connection"
I am just getting started with ASP.Net. I am attempting to place a dateGrid on a page and I have done all the things I would do in a Windows... -
Jens Süßmeyer #2
Re: Not associated with a trusted SQL Server connection
Hello vlad !
Try to search for "impersonation" in the web.config, its responsible for the
behaviour of SQL Server and your Web Server.
Jens Süßmeyer
"vlad" <stampsworld@stampsworld.net> schrieb im Newsbeitrag
news:erE3xCoZDHA.2336@TK2MSFTNGP09.phx.gbl...based> We are running SQL server 2000 on MS Windows Server 2000. We have web> database (ASP.net and SQL Server 2000). When I run this page with 'sa'
> account, It works but when I change it to Window autointoxication I am
> getting the following error massage.
> Login failed for user '(null)'. Reason: Not associated with a trusted SQL
> Server connection.
> I don't want to use 'sa' account. Please let me know how to solve this
> problem.
>
>
Jens Süßmeyer Guest
-
Tom Vande Stouwe MCSD.net #3
Re: Not associated with a trusted SQL Server connection
The other poster recommended impersonation. However a few 'Gotchya' there
1) The requesting user must have authenticated on the web server before the
SQL request
2) This prevents using connection pooling as the connection string changes,
and therefore slows execution
3) The calling user must be an user on the SQL Box.
I suggest that you add ASPNET as a user on the SQL Box, set the permissions
to what the server will need, and use that account. This side steps the
issues above.
Tom
--
==========================================
= Tom Vande Stouwe MCSD.net, MCAD.net, MCP
= 45Wallstreet.com ([url]www.45wallstreet.com[/url])
= (803)-345-5001
==========================================
= If you are not making any mistakes
..= ..you are not trying hard enough.
==========================================
"vlad" <stampsworld@stampsworld.net> wrote in message
news:erE3xCoZDHA.2336@TK2MSFTNGP09.phx.gbl...based> We are running SQL server 2000 on MS Windows Server 2000. We have web> database (ASP.net and SQL Server 2000). When I run this page with 'sa'
> account, It works but when I change it to Window autointoxication I am
> getting the following error massage.
> Login failed for user '(null)'. Reason: Not associated with a trusted SQL
> Server connection.
> I don't want to use 'sa' account. Please let me know how to solve this
> problem.
>
>
Tom Vande Stouwe MCSD.net Guest



Reply With Quote

