Not associated with a trusted SQL Server connection

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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,...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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.
    >
    >

    Jens Süßmeyer Guest

  4. #3

    Default 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...
    > 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.
    >
    >

    Tom Vande Stouwe MCSD.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139