Re: "Login failed for user '(null)' reason: not associated...

From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 11/04/03


Date: Tue, 04 Nov 2003 08:34:13 -0700

You'd want to consider using DSN-less connections in your
application. Then the DSN or login prompts are not the issue
and it's just a matter of the correct code in the
application. What to code depends on the servers
authentication mode and somewhat on your application. You
can use Windows Authentication or SQL login depending on the
authentication mode of your server. Another option if you
are controlling all of this through your application is to
use Application roles.
You can find more information on Authentication and
applications roles in books online. If you are using ADO to
connect to SQL Server, you can find sample connection
strings at:
http://www.able-consulting.com/ADO_Conn.htm

-Sue

On Tue, 4 Nov 2003 06:55:57 -0800, "carlos aguero"
<anonymous@discussions.microsoft.com> wrote:

>"Login failed for user '(null)'reason: not associated with
>a truested SQL server.
>Does anyone know what this is all about? This is the
>problem. I run sql server 7 in machine A. I run an
>application on machine B. I created an ODBC in machine B.
>But when running the app....sql server requires a login
>name.
>One answer is to tell the sql server not to request a
>login name at all. I control the access to the data within
>my application. Now, How do I do that? To set up SQL
>server to not request login name.
>Any help will be appreciated!!
>Carlos Aguero



Relevant Pages

  • Re: OK - Im stupid....How do you create a user?
    ... not a Windows login, you'll need to change the authentication mode SQL ... Server uses from "Windows Authentication" to "SQL Server and Windows ... Windows authentication mode if at all possible. ...
    (microsoft.public.sqlserver.security)
  • Re: losing sysadmin
    ... >login as SA. ... >> 1)My SQL Server is in Mixed Authentication Mode. ... >> 4)Now I changed the Mixed Authentication Mode to Windows ... >> now I don't have a sysadmin role. ...
    (microsoft.public.sqlserver.security)
  • Re: losing sysadmin (Thanks)
    ... >login as SA. ... >> 1)My SQL Server is in Mixed Authentication Mode. ... >> 4)Now I changed the Mixed Authentication Mode to Windows ... >> now I don't have a sysadmin role. ...
    (microsoft.public.sqlserver.security)
  • Re: Unexpected Login Screen When Accessing SQL Data Via .NET Intra
    ... >> data and the SQL Server is on the same server. ... >> My problem is that one user has started getting a login popup ... >> right in via Windows Authentication like everyone else and like they ...
    (microsoft.public.sqlserver.connect)
  • Re: cannot acees two databases as owner
    ... it does not matter you are a member of the ... the sysadmin fixed server role or if there is no any other Login which is ... group if it's a domain) and you can login to your SQL Server with, ...
    (microsoft.public.sqlserver.setup)