Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Administrator logon rejected with ODBC Drivers error '8004..

 
   Database Help (Home) -> Client RSS
Next:  Business Objects, an APPARENTLY simple COUNTER ....  
Author Message
Lisa

External


Since: Feb 08, 2005
Posts: 1



(Msg. 1) Posted: Tue Feb 08, 2005 2:33 pm
Post subject: Administrator logon rejected with ODBC Drivers error '80040e
Archived from groups: microsoft>public>sqlserver, others (more info?)

I'm running SQL Server 2000 under Windows 2000 Advanced Server.
Authentication is set up as Windows Only. The Administrator account for the
server is set up as an SQL user (this is done by default). I'm using the
following ASP code to log onto a sample database (for which the
Administrator has been granted access):

strConnectionString = "Provider=MSDASQL;DRIVER={SQL Server};" +_
"Server=localhost;database=" + strDBaseName +
";UID=MACHINENAME\Administrator;PWD=password;"

However, I get the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'

[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'MACHINENAME\Administrator'. Reason: Not associated with a trusted SQL
Server connection.

I get the same error even if I use Administrator without MACHINENAME. I
even enabled Basic Authentication on the default website, as Microsoft
suggested.

Any ideas why the Administrator is being rejected?

Thanks,

Lisa

 >> Stay informed about: Administrator logon rejected with ODBC Drivers error '8004.. 
Back to top
Login to vote
David Gugick

External


Since: Sep 21, 2004
Posts: 118



(Msg. 2) Posted: Tue Feb 08, 2005 4:40 pm
Post subject: Re: Administrator logon rejected with ODBC Drivers error '80 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Lisa wrote:
 > I'm running SQL Server 2000 under Windows 2000 Advanced Server.
 > Authentication is set up as Windows Only. The Administrator account
 > for the server is set up as an SQL user (this is done by default).
 > I'm using the following ASP code to log onto a sample database (for
 > which the Administrator has been granted access):
 >
 > strConnectionString = "Provider=MSDASQL;DRIVER={SQL Server};" +_
 > "Server=localhost;database=" + strDBaseName +
 > ";UID=MACHINENAME\Administrator;PWD=password;"
 >
 > However, I get the following error:
 >
 > Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
 >
 > [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
 > 'MACHINENAME\Administrator'. Reason: Not associated with a trusted SQL
 > Server connection.
 >
 > I get the same error even if I use Administrator without MACHINENAME.
 > I even enabled Basic Authentication on the default website, as
 > Microsoft suggested.
 >
 > Any ideas why the Administrator is being rejected?
 >
 > Thanks,
 >
 > Lisa

You don't want to do it that way. UserID and Password are only for SQL
Authentication, not Windows Authentication. It looks like your IIS
server is running on the same box as SQL Server (not a great idea for
anything but an internal site). If that's the case, you only need to
specify in the connection string that you are using an Trusted
Connection. No password is required.

Add "TrustedConnection=Yes" to the connection string. It automatically
uses the current connection to Windows to authenticate.

--
David Gugick
Imceda Software
<a style='text-decoration: underline;' href="http://www.imceda.com" target="_blank">www.imceda.com</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Administrator logon rejected with ODBC Drivers error '8004.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Import ODBC Drivers - Is there a way to import or copy the odbc drivers from my server to my client without having to go through the process of setting up a new driver, defining the format, etc... on each client machine. -- -------------------------------------------- Yes,...

sqlTransaction Complete Error-dataype was image now varbin.. - Hi, This is being called in a C# loop within an ado.net transaction from C# 1.1 code. It is used to write large file data to a SQL Server database in chunks, rather than in one go. I had the stored procedure below, which worked until the image..

ADO Error in AdoConnection::open failed to create Connecti.. - Getting the subject event in the event viewer when trying to connect to a SQL2005 database from a workstation. My other workstations are not having this problem, so I'm sure it's related to this machine, but just can't figure it out. It's an XP Pro....

OLEDB: Prepared cmd with NULL input param for NOT NULL INT.. - Provider: SQLOLEDB Version: SQL Server 2000 8.00.760 Script for creating table: CREATE TABLE [dbo].[ADRVERTRETER] ( <font color=purple> ; [ROWID] [timestamp] NULL ,</font> <font color=purple> ; [ROWVERTRETER] [int] NO...

[MS Design Tools] - Class not registered.&quot; - On a Windows 2000 pro workstation I am using SQL 2000 enterprise manager I am trying to return all rows, I get the error message "An unexpected error happened during this operation. [MS Design Tools] - Class not registered." I have reinstall...
   Database Help (Home) -> Client All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]