<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Fix : Error: 18452 Login failed for user &#8216;(null)&#8217;. The user is not associated with a trusted SQL Server connection.</title>
	<atom:link href="http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul Godfrey</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57526</link>
		<dc:creator>Paul Godfrey</dc:creator>
		<pubDate>Wed, 11 Nov 2009 16:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57526</guid>
		<description>Great Site. My PC had been renamed. &quot;kaleeswar B&quot; was correct. This caused the error. Many thanks for the advice.</description>
		<content:encoded><![CDATA[<p>Great Site. My PC had been renamed. &#8220;kaleeswar B&#8221; was correct. This caused the error. Many thanks for the advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57374</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Fri, 06 Nov 2009 06:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57374</guid>
		<description>Thanks a lot for your article, it helped me to solve the problem. Good job!!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your article, it helped me to solve the problem. Good job!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allen</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57368</link>
		<dc:creator>Allen</dc:creator>
		<pubDate>Thu, 05 Nov 2009 21:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57368</guid>
		<description>http://social.msdn.microsoft.com/Forums/en/sqlsecurity/thread/48ee6a1b-9aad-48a6-90e4-b8f4b93d0107


also deals with this.  The server may have to be set to support Mixed Authentication for non Windows Authentication logins to work.  The install default is Windows Authentication only I think.</description>
		<content:encoded><![CDATA[<p><a href="http://social.msdn.microsoft.com/Forums/en/sqlsecurity/thread/48ee6a1b-9aad-48a6-90e4-b8f4b93d0107" rel="nofollow">http://social.msdn.microsoft.com/Forums/en/sqlsecurity/thread/48ee6a1b-9aad-48a6-90e4-b8f4b93d0107</a></p>
<p>also deals with this.  The server may have to be set to support Mixed Authentication for non Windows Authentication logins to work.  The install default is Windows Authentication only I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57337</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Thu, 05 Nov 2009 02:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57337</guid>
		<description>How could I run this code in Query Analyser if I&#039;m unable to login to server?</description>
		<content:encoded><![CDATA[<p>How could I run this code in Query Analyser if I&#8217;m unable to login to server?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-56733</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 15 Oct 2009 17:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-56733</guid>
		<description>Mine turned out to be a change to a registry key for Rightfax. I had to include a user and password in the registry key. Apparently Rightfax only looks at the ODBC driver for the server name, why bother at all?!</description>
		<content:encoded><![CDATA[<p>Mine turned out to be a change to a registry key for Rightfax. I had to include a user and password in the registry key. Apparently Rightfax only looks at the ODBC driver for the server name, why bother at all?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ananth</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-56712</link>
		<dc:creator>ananth</dc:creator>
		<pubDate>Thu, 15 Oct 2009 04:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-56712</guid>
		<description>Hi,

  I too have the same problem. So long i am getting errors for SSPI handshake and login failed for the user etc. This blog was very helpful.. Thanks a lot...

  For me, the solution was the host had two DNS names. So, I had changed the DNS to the same which is recognized under Network (My Computer --&gt; Properties --&gt; Network Identification) in client network utility. (Run --&gt; cliconfg). Restart the SQL Server. It won&#039;t show any more errors in Agent log &amp; event viewer ... It will allow windows authentication also...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>  I too have the same problem. So long i am getting errors for SSPI handshake and login failed for the user etc. This blog was very helpful.. Thanks a lot&#8230;</p>
<p>  For me, the solution was the host had two DNS names. So, I had changed the DNS to the same which is recognized under Network (My Computer &#8211;&gt; Properties &#8211;&gt; Network Identification) in client network utility. (Run &#8211;&gt; cliconfg). Restart the SQL Server. It won&#8217;t show any more errors in Agent log &amp; event viewer &#8230; It will allow windows authentication also&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wyatt Wong</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-56226</link>
		<dc:creator>Wyatt Wong</dc:creator>
		<pubDate>Tue, 29 Sep 2009 02:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-56226</guid>
		<description>I have solved the problem, after changing the connection to &quot;SQL Server and Windows Authentication mode&quot;, I need to stop the SQL Server Service and SQL Server Agent Service and restart them.</description>
		<content:encoded><![CDATA[<p>I have solved the problem, after changing the connection to &#8220;SQL Server and Windows Authentication mode&#8221;, I need to stop the SQL Server Service and SQL Server Agent Service and restart them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wyatt Wong</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-56225</link>
		<dc:creator>Wyatt Wong</dc:creator>
		<pubDate>Tue, 29 Sep 2009 02:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-56225</guid>
		<description>I have already change the mode to &quot;SQL Server and Windows Authentication mode&quot; but I am still getting the error of &quot;The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452).

Why is that ?</description>
		<content:encoded><![CDATA[<p>I have already change the mode to &#8220;SQL Server and Windows Authentication mode&#8221; but I am still getting the error of &#8220;The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452).</p>
<p>Why is that ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codingace</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55922</link>
		<dc:creator>codingace</dc:creator>
		<pubDate>Wed, 16 Sep 2009 18:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55922</guid>
		<description>This advice is great unless you are ALREADY in mixed mode on SQL 2005 and STILL receiving the same error. The services HAVE been restarted and STILL receiving the same error. I am using Rightfax. It is trying to alert the database that the fax was successful. My System DSN (ODBC connection) verifies fine using SQL user and password, but when the Rightfax program goes to run the process, It gives me the dreaded User not associated error and the user is &#039;&#039;. This is maddening! I have spent two full days so far, but all I find is change the mode to mixed mode, I am already there!</description>
		<content:encoded><![CDATA[<p>This advice is great unless you are ALREADY in mixed mode on SQL 2005 and STILL receiving the same error. The services HAVE been restarted and STILL receiving the same error. I am using Rightfax. It is trying to alert the database that the fax was successful. My System DSN (ODBC connection) verifies fine using SQL user and password, but when the Rightfax program goes to run the process, It gives me the dreaded User not associated error and the user is &#8221;. This is maddening! I have spent two full days so far, but all I find is change the mode to mixed mode, I am already there!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Dow</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55745</link>
		<dc:creator>Ian Dow</dc:creator>
		<pubDate>Wed, 09 Sep 2009 09:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55745</guid>
		<description>Solved.
The connectionstring line was at fault, it should have been
connectionString=&quot;Data Source=.\SQLEXPRESS;INITIAL CATALOG=HandScanning;Integrated Security=SSPI;User Instance=False&quot;

Instead of &quot;Integrate Security=SSPU;user instance=false, &quot;
I had     &quot;id=PC\Aministrator;pwd=&quot;

So this error can also relate to errors in the constuction of the 
connectionstring</description>
		<content:encoded><![CDATA[<p>Solved.<br />
The connectionstring line was at fault, it should have been<br />
connectionString=&#8221;Data Source=.\SQLEXPRESS;INITIAL CATALOG=HandScanning;Integrated Security=SSPI;User Instance=False&#8221;</p>
<p>Instead of &#8220;Integrate Security=SSPU;user instance=false, &#8221;<br />
I had     &#8220;id=PC\Aministrator;pwd=&#8221;</p>
<p>So this error can also relate to errors in the constuction of the<br />
connectionstring</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schmuli</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55737</link>
		<dc:creator>Schmuli</dc:creator>
		<pubDate>Wed, 09 Sep 2009 05:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55737</guid>
		<description>Thank you.</description>
		<content:encoded><![CDATA[<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Dow</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55735</link>
		<dc:creator>Ian Dow</dc:creator>
		<pubDate>Wed, 09 Sep 2009 05:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55735</guid>
		<description>I am having the error 
&quot;Login failed for user &#039;sa&#039;. The user is not associated with a trusted SQL Server connection.&quot;.

I have Windows XP Service Pack 2, 
I have MS SQL 2005 Express, 
I can have either &#039;Windows Authentication&#039; or &#039;SQL server Authentication&#039; in SQL. 
I have MS SQL Server Compact 3.5 Design, ENU, 
I have MS SQL Server Native Client

I have just removed passwords for sa, and my login in the SQL server.

How can I solve this error please?</description>
		<content:encoded><![CDATA[<p>I am having the error<br />
&#8220;Login failed for user &#8217;sa&#8217;. The user is not associated with a trusted SQL Server connection.&#8221;.</p>
<p>I have Windows XP Service Pack 2,<br />
I have MS SQL 2005 Express,<br />
I can have either &#8216;Windows Authentication&#8217; or &#8216;SQL server Authentication&#8217; in SQL.<br />
I have MS SQL Server Compact 3.5 Design, ENU,<br />
I have MS SQL Server Native Client</p>
<p>I have just removed passwords for sa, and my login in the SQL server.</p>
<p>How can I solve this error please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramakrishna dodda</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55289</link>
		<dc:creator>ramakrishna dodda</dc:creator>
		<pubDate>Thu, 27 Aug 2009 07:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-55289</guid>
		<description>when we are running the insert statement with the linked server, it is working fine. 
If i create the job , it is failing with the folowing error
Executed as user: SYNTEL\user1. Login failed for user &#039;(null)&#039;. Reason: Not associated with a trusted SQL Server connection. [SQLSTATE 28000] (Error 18452).  The step failed.

We are getting the error in sql 2000.

Regards,
D.RamaKrishna</description>
		<content:encoded><![CDATA[<p>when we are running the insert statement with the linked server, it is working fine.<br />
If i create the job , it is failing with the folowing error<br />
Executed as user: SYNTEL\user1. Login failed for user &#8216;(null)&#8217;. Reason: Not associated with a trusted SQL Server connection. [SQLSTATE 28000] (Error 18452).  The step failed.</p>
<p>We are getting the error in sql 2000.</p>
<p>Regards,<br />
D.RamaKrishna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: René</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-54842</link>
		<dc:creator>René</dc:creator>
		<pubDate>Fri, 14 Aug 2009 06:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-54842</guid>
		<description>I had the same problem.
SQL 2000 on a server in windows authentication mode.
The Active Directory role set in the SQL security tab.
My colleagues could log on to the server using the enterprice manager. I couldn&#039;t, getting the same error &quot;Login failed for user ‘(null)’. The user is not associated with a trusted SQL Server connection&quot;. Setting the server in mixed mode is no option because of business policy.

The solution:
With the windows explorer I connected to a shared directory on the server.
Problem solved.

I don&#039;t understand why or how, but it works.</description>
		<content:encoded><![CDATA[<p>I had the same problem.<br />
SQL 2000 on a server in windows authentication mode.<br />
The Active Directory role set in the SQL security tab.<br />
My colleagues could log on to the server using the enterprice manager. I couldn&#8217;t, getting the same error &#8220;Login failed for user ‘(null)’. The user is not associated with a trusted SQL Server connection&#8221;. Setting the server in mixed mode is no option because of business policy.</p>
<p>The solution:<br />
With the windows explorer I connected to a shared directory on the server.<br />
Problem solved.</p>
<p>I don&#8217;t understand why or how, but it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Feby Adityawan</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-54497</link>
		<dc:creator>Feby Adityawan</dc:creator>
		<pubDate>Thu, 06 Aug 2009 02:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-54497</guid>
		<description>Thx, mean while it works.

I have many servers, and one of them is in different network
We just do this

&quot;Frank Stevens

This is for WINDOWS AUTHENTICATION:

I received this error when connecting to the SQL Server remotely via my application. After researching, I found that you had to both enable trusted authentication on my SQL Server machine and grant the User Right “Enable computer and user accounts to be trusted for delegation” (Group Policy…under Local Policies\User Rights Assignment) to the Windows account you are using. I just granted it for the Administrators group.

For the SQL Server machine, I set the property in Active Directory (check the box labeled “Trust computer for delegation” in the computer’s properties).

Make sure you for the group policy changes (gpupdate /force).&quot;

so..our domain controller (on other network) had virus, virus attacking security system, sometime it grant the active directory and sometime it doesn&#039;t (Aaarrgghh..)</description>
		<content:encoded><![CDATA[<p>Thx, mean while it works.</p>
<p>I have many servers, and one of them is in different network<br />
We just do this</p>
<p>&#8220;Frank Stevens</p>
<p>This is for WINDOWS AUTHENTICATION:</p>
<p>I received this error when connecting to the SQL Server remotely via my application. After researching, I found that you had to both enable trusted authentication on my SQL Server machine and grant the User Right “Enable computer and user accounts to be trusted for delegation” (Group Policy…under Local Policies\User Rights Assignment) to the Windows account you are using. I just granted it for the Administrators group.</p>
<p>For the SQL Server machine, I set the property in Active Directory (check the box labeled “Trust computer for delegation” in the computer’s properties).</p>
<p>Make sure you for the group policy changes (gpupdate /force).&#8221;</p>
<p>so..our domain controller (on other network) had virus, virus attacking security system, sometime it grant the active directory and sometime it doesn&#8217;t (Aaarrgghh..)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-54017</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 23 Jul 2009 14:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-54017</guid>
		<description>Thanks!  That fixed it!</description>
		<content:encoded><![CDATA[<p>Thanks!  That fixed it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishna</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-53269</link>
		<dc:creator>krishna</dc:creator>
		<pubDate>Fri, 26 Jun 2009 06:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-53269</guid>
		<description>I tried the above script but getting erro
Incorrect syntax near &#039;LOGIN&#039;.</description>
		<content:encoded><![CDATA[<p>I tried the above script but getting erro<br />
Incorrect syntax near &#8216;LOGIN&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Art</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-52549</link>
		<dc:creator>Art</dc:creator>
		<pubDate>Fri, 29 May 2009 21:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-52549</guid>
		<description>I have my Server set to SQL Server and Windows Authentication Mode, but I get  &quot;Login filed for user &#039;&#039;. 
My app settings are as follows:

    
    
    
    
    
    
  

In my web.config settings, I have the authentication mode defined within  as follows:

      
    

I have been wrestling with this problem for over a week and still don&#039;t have a solution. My problem seems similar to the others, but I already had the authentication mode set to both Windows and SQL Server.
Can you tell me what I need to do to correct my error?
Thank you very much,
Art
P.S. The error message with stack is as follows:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: Login failed for user &#039;&#039;.

Source Error: 

Line 28: 		pw = Request.Form(&quot;password&quot;)
Line 29: 	
Line 30:         If UserLogin(reg, pw) Then
Line 31:             Response.Redirect(&quot;MainMenu.aspx&quot;)
Line 32:         Else

Source File: C:\Users\Art\Documents\Visual Studio 2008\WebSites\WebSite1\Login.vb    Line: 30 

Stack Trace: 

[SqlException (0x80131904): Login failed for user &#039;&#039;.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +35
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +144
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   PC.DbAccessor.GetDR(String cSQL) +127
   PC.EDUPage.UserLogin(String aUserName, String aPassword) +176
   Login.cmdLogin_Click(Object sender, EventArgs e) in C:\Users\Art\Documents\Visual Studio 2008\WebSites\WebSite1\Login.vb:30
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565</description>
		<content:encoded><![CDATA[<p>I have my Server set to SQL Server and Windows Authentication Mode, but I get  &#8220;Login filed for user &#8221;.<br />
My app settings are as follows:</p>
<p>In my web.config settings, I have the authentication mode defined within  as follows:</p>
<p>I have been wrestling with this problem for over a week and still don&#8217;t have a solution. My problem seems similar to the others, but I already had the authentication mode set to both Windows and SQL Server.<br />
Can you tell me what I need to do to correct my error?<br />
Thank you very much,<br />
Art<br />
P.S. The error message with stack is as follows:<br />
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
<p>Exception Details: System.Data.SqlClient.SqlException: Login failed for user &#8221;.</p>
<p>Source Error: </p>
<p>Line 28: 		pw = Request.Form(&#8220;password&#8221;)<br />
Line 29:<br />
Line 30:         If UserLogin(reg, pw) Then<br />
Line 31:             Response.Redirect(&#8220;MainMenu.aspx&#8221;)<br />
Line 32:         Else</p>
<p>Source File: C:\Users\Art\Documents\Visual Studio 2008\WebSites\WebSite1\Login.vb    Line: 30 </p>
<p>Stack Trace: </p>
<p>[SqlException (0x80131904): Login failed for user ''.]<br />
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887<br />
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194<br />
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392<br />
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +35<br />
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +144<br />
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342<br />
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221<br />
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189<br />
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185<br />
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31<br />
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433<br />
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66<br />
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499<br />
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65<br />
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117<br />
   System.Data.SqlClient.SqlConnection.Open() +122<br />
   PC.DbAccessor.GetDR(String cSQL) +127<br />
   PC.EDUPage.UserLogin(String aUserName, String aPassword) +176<br />
   Login.cmdLogin_Click(Object sender, EventArgs e) in C:\Users\Art\Documents\Visual Studio 2008\WebSites\WebSite1\Login.vb:30<br />
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111<br />
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110<br />
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10<br />
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13<br />
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36<br />
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Godwin</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-52488</link>
		<dc:creator>Godwin</dc:creator>
		<pubDate>Wed, 27 May 2009 18:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-52488</guid>
		<description>Its helpful. Thank u</description>
		<content:encoded><![CDATA[<p>Its helpful. Thank u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reena</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-51729</link>
		<dc:creator>Reena</dc:creator>
		<pubDate>Sat, 09 May 2009 07:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-51729</guid>
		<description>Thank you!!! Pinal Dave....This article really helped a lot....</description>
		<content:encoded><![CDATA[<p>Thank you!!! Pinal Dave&#8230;.This article really helped a lot&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
