Re: ADO and Win32 Services

From: Ross McKay (rosko_at_zeta.NOT.THIS.BIT.org.au)
Date: 03/25/05


Date: Fri, 25 Mar 2005 04:41:21 GMT

On Tue, 22 Mar 2005 16:17:17 +0200, Peter wrote:

>I have written a service that uses ADO. When running the service as a
>console app, everything works great. However, when the service is run 'as a
>service' in the SCM, I find a problem with the connection.
>...
>I have tried changing the account under which the service runs. That didn't
>work. I tried testing different data providers. Same problem. Anything else
>I can try?

I'm going to guess here that you are not ensuring that the connection is
being made as TCP/IP, and therefore could be a named pipe connection.
When you changed the account under which it runs, did you try a login
account that can connect to the server? (i.e. not just a local computer
account, if the server is on another computer)

Probably the easiest way to resolve would be to create an alias for your
server in the Client Network Utility, and specify TCP/IP. Alternatively,
specify TCP/IP as your network library in your connection string.

That's pretty much all I can think of. Good luck!

-- 
Ross McKay, Toronto, NSW Australia
"There is more to life than simply increasing its speed." - Mahatma Gandhi


Relevant Pages

  • Re: Storing Username/Password problem
    ... double click the RDP-Tcp connection and look at the Logon ... MCSE, CCEA, Microsoft MVP - Terminal Server ... logged on with the credentials specified in Terminal Services ... Do you want each user to have their own account on the server, ...
    (microsoft.public.windows.terminal_services)
  • Re: Cannot connect to the Internet
    ... My Windows 2000 pro PC is connected to the internet (Local Area ... Connection 2 Status icon shows "Connected" with a speed of 10..0 ... The master browser has received a server announcement from ... Posted via a free Usenet account from http://www.teranews.com ...
    (microsoft.public.mac.virtualpc)
  • Re: Error 10061, 0x800ccc0e, bug?
    ... message 'connection to server cannot be established. ... booting and in your first XP login session, ... * changing windows account is not important, ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Problem with anonymous connections
    ... but you can use another user account instead-of IUSR_machine ... I'm using the ADO recordset object to get data and this is in an ASP ... the user can open a shared folder on the SSAS server first (so the user is ... > A connection cannot be made. ...
    (microsoft.public.sqlserver.olap)
  • Re: Intermittent Exchange Server is Unavailable Message
    ... the connection to the server. ... The computers don't have domain account because I didn't know to create ... you may be able to spot the network connection going up and down. ... Les Connor [SBS Community Member - SBS MVP] ...
    (microsoft.public.windows.server.sbs)