>I have this simple program for testing:
>***********
>SYS(2340, 1)
>
>DECLARE Sleep IN kernel32 integer delay
>FOR lnCount = 1 TO 5
> Sleep(2000)
> lcAlias = 'test' + STRTRAN(TIME(), ':', '')
> CREATE TABLE (lcAlias) FREE (ff c(4))
> USE IN (lcAlias)
>ENDFOR
>***********
>
>It works as an executable.
>I added that program to services using that:
>instsvr servicetest
\srvany.exe
Make sure your service is defined to work with the administrator account first. If it works in admin mode, then, the problem would be related to rights. Otherwise, it might be in the code.