Tom Knowlton
asked on
Windows Service trying to write to database table...proglem logging in
I am getting the following SQLException:
Message "Login failed for user 'ITDEV\Administrator'." string
~~~~~~~~~~~~~~
Now, I know that I can use SQL Server Enterprise Manager just fine.....and I can read and write to the table that I am trying to write to in my C# Windows Service. I know that other parts of the Windows Service are running okay.
Message "Login failed for user 'ITDEV\Administrator'." string
~~~~~~~~~~~~~~
Now, I know that I can use SQL Server Enterprise Manager just fine.....and I can read and write to the table that I am trying to write to in my C# Windows Service. I know that other parts of the Windows Service are running okay.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The services control panel?
What's the Logon account being used by the service?
What account do you logon under?
What account do you logon under?
ASKER
Administrator (and admin pw as well)
Isn't this just a logon for the service itself (not for the database connection later on?)
Isn't this just a logon for the service itself (not for the database connection later on?)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Are talking about mixed authentication versus NT Authentication?
ASKER
I am positive I use Windows NT authentication when creating a DSN under Data Sources (ODBC) in Administrative Tools. These DSN entries are on the same machine I am testing the Windows Service on.
Does this help?
Does this help?
If you are using windows authentication then the windows account the service is running under comes into play.
ASKER
server=ITDEV;Trusted_Conne
This works for other apps just fine.