Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-06-2009
Member
 
Join Date: Nov 2008
Posts: 109
Login failed, not associated with a trusted SQL server connection

I have ODBC Connection between SQL Server and with my site, even though it seems to be perfect but whenever i check for the security, it gives me the folowing erormessage Login failed, not associated with a trusted SQL server connection,what kind of problem is that does anyone clear a ther.aassss
Reply With Quote
  #2  
Old 11-06-2009
Member
 
Join Date: Apr 2008
Posts: 242
Re: Login failed, not associated with a trusted SQL server connection

How To: Login failed ... not associated with a trusted SQL server connection

Summary
You probably didn't specify "Mixed Mode authentication" during the install.


Issue
While configuring the ODBC data source (step 2 on page 12 of the ACS Administrator Guide) I'm getting the error

Connection failed:
SQLState: '28000'
SQL Server Error: 18452
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'gbadmin'. Reason: Not associated with a trusted SQL Server connection

If you need to Solution dopp
You probably didn't specify "Mixed Mode authentication" during the install.
Reply With Quote
  #3  
Old 11-06-2009
Member
 
Join Date: Dec 2008
Posts: 183
Re: Login failed, not associated with a trusted SQL server connection

You may also check for the windows authentication by using the following command:

Quote:
server=Domain\DB_SERVER_NAME;database=DB_NAME;Trusted_Connection=yes;

ie "server=(local)\VSTE;database=intranet;Trusted_Connection=yes;"
and for the security purpose of the SQL Server you may use:

Quote:
server=Domain\DB_SERVER_NAME;database=DB_NAME;uid=USER_ID;password=PASSWORD;
If following above things, you would not be getting any thing or it simply fails, make a new user on the box where the SQL Server is installed. From there, you can just use that account by using SQL Server authentication instead of Windows based.
Reply With Quote
  #4  
Old 11-06-2009
Member
 
Join Date: Apr 2008
Posts: 193
Re: Login failed, not associated with a trusted SQL server connection

I was also facing the same Problem. I was getting error message Login failed for user 'COMPUTERNAME\ASPNET' Everything I tried doesn't work. In my office we had "Mixed Mode" where on application runs on the INTRANET (--> Windows-authentication) and another one that runs over the Internet (--> SQL-Authentication). When i checked that connection with the network manager it were showing "Trusted_Connection=Yes" within the Intranet-Application, we can't create a new SQL-User-Account because I'm working with the Windows Login-Name.
This is how the code in the web.config looks:

<add key="loginDb" value="Server=COMPUTERNAME;Database=DBNAME;Trusted_Connection=Yes"/>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Login failed, not associated with a trusted SQL server connection"
Thread Thread Starter Forum Replies Last Post
Connection to the Server failed in Anno 2070 Sanaka Video Games 11 04-12-2011 02:33 PM
Getting VMware VDM server authentication failed error, While trying to login in vdm client using vdm Ryszard Windows Software 3 15-09-2011 10:44 PM
Connection failed for the database login Indivar Software Development 5 18-11-2010 12:03 AM
Login Failed For User - Microsoft SQL Server, Error: 4064 Udayachal Windows Software 4 05-04-2010 04:45 PM
How to detect Connection has failed with SQL Server Cadallic Software Development 4 23-09-2009 09:54 AM


All times are GMT +5.5. The time now is 10:30 AM.