Re: execute a stored job through MS ACCESS 2000
From: Sue Hoegemeier (Sue_H@nomail.please)
Date: 09/03/02
- Next message: Richard Bas: "Security / port 1433"
- Previous message: pablo: "Re: logged in user can't see tables"
- In reply to: Oskar: "execute a stored job through MS ACCESS 2000"
- Next in thread: Oskar: "Re: execute a stored job through MS ACCESS 2000"
- Reply: Oskar: "Re: execute a stored job through MS ACCESS 2000"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Sue Hoegemeier <Sue_H@nomail.please> Date: Mon, 02 Sep 2002 21:28:17 -0600
If the user is not a sysadmin then the user needs to own the
job to execute sp_start_job. The job will run under the
security context of the proxy account. If you haven't
configured the proxy account, the job will fail.
The proxy account is used for the security context when jobs
or commands (e.g. xp_cmdshell) are executed by
non-sysadmins.
You can find more info on the proxy account by search books
online for: xp_sqlagent_proxy_account
-Sue
On Sat, 31 Aug 2002 10:00:37 +0200, "Oskar"
<o_vaia@hotmail.com> wrote:
>hi,
>
>i would like to execute a stored job through MS ACCESS 2000 from a
>client-pc, who is not member of the sysadmin-roule.
>the job execute a DTS package.
>
>here my code in VBA:
>
>----
>----
>dim conn as ADODB.connection
>set conn = new ADODB.connection
>conn.open "Provider=SQLOLEDB;Data Source=SQLSERVER;Initial
>Catalog=salesDB;Integrated Security=SSPI;"
>conn.execute "EXEC msdb.dbo.sp_start_job @job_name = 'salesstat'"
>conn.close
>set conn = nothing
>----
>
>when i try to run the makro then it'll not function.
>
>on the server is running SQL Server 2000 with SP2.
>the server use windows authentication.
>what must i do to run the job with a non sysadmin-member-account?
>
>what is the PROXY ACCOUNT and how is it to use?
>
>thx and bye
>
>Oskar
>
>(sorry, for my english!)
>
- Next message: Richard Bas: "Security / port 1433"
- Previous message: pablo: "Re: logged in user can't see tables"
- In reply to: Oskar: "execute a stored job through MS ACCESS 2000"
- Next in thread: Oskar: "Re: execute a stored job through MS ACCESS 2000"
- Reply: Oskar: "Re: execute a stored job through MS ACCESS 2000"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|