dbTalk Databases Forums  

Re: cmdExec Problem

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Re: cmdExec Problem in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: cmdExec Problem - 08-11-2004 , 03:36 PM






You need to look in SQL Server Agent properties.
You can disallow/allow non sysadmins to run this type of job step



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote

Quote:
hi,
I am having problems with the Package Execution in Jobs.

I created a Job and a step for the job to execute the Package with
subsystem
option is cmdExec (I think that's the right one) and dtsrun in the command
line with options. If I run on the sql server client command line using
dtsrun, it works fine. But, If I run the above created job using
sp_start_job, then it is failing saying "nonsysadmin denied cmdExec job
steps".
How to fix the problem? I need to run the package on demand from .NET.

Thanks,




Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: cmdExec Problem - 08-11-2004 , 04:06 PM






Go to the SQL Server Agent of the Server on which your job runs in EM

Right Click | Properties | Job System tab



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote

Quote:
Where do I see the SQL Server Agent Properties?

I have only SQL Server Enterprise Edition Client installation. Does it
show
on server installation?

Sreenath

"Allan Mitchell" wrote:

You need to look in SQL Server Agent properties.
You can disallow/allow non sysadmins to run this type of job step



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote in message
news:AFCDF631-3DCE-4610-995E-719955F0F9AC (AT) microsoft (DOT) com...
hi,
I am having problems with the Package Execution in Jobs.

I created a Job and a step for the job to execute the Package with
subsystem
option is cmdExec (I think that's the right one) and dtsrun in the
command
line with options. If I run on the sql server client command line
using
dtsrun, it works fine. But, If I run the above created job using
sp_start_job, then it is failing saying "nonsysadmin denied cmdExec
job
steps".
How to fix the problem? I need to run the package on demand from .NET.

Thanks,







Reply With Quote
  #3  
Old   
Sreenath
 
Posts: n/a

Default Re: cmdExec Problem - 08-11-2004 , 05:01 PM



But, what kind of permissions/rights the non-sysadmin needs to run the job?

thanks,
Sreenath

"Allan Mitchell" wrote:

Quote:
Go to the SQL Server Agent of the Server on which your job runs in EM

Right Click | Properties | Job System tab



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote in message
news:2AA12D0C-F9F8-4A51-A1A4-4747656B71C3 (AT) microsoft (DOT) com...
Where do I see the SQL Server Agent Properties?

I have only SQL Server Enterprise Edition Client installation. Does it
show
on server installation?

Sreenath

"Allan Mitchell" wrote:

You need to look in SQL Server Agent properties.
You can disallow/allow non sysadmins to run this type of job step



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote in message
news:AFCDF631-3DCE-4610-995E-719955F0F9AC (AT) microsoft (DOT) com...
hi,
I am having problems with the Package Execution in Jobs.

I created a Job and a step for the job to execute the Package with
subsystem
option is cmdExec (I think that's the right one) and dtsrun in the
command
line with options. If I run on the sql server client command line
using
dtsrun, it works fine. But, If I run the above created job using
sp_start_job, then it is failing saying "nonsysadmin denied cmdExec
job
steps".
How to fix the problem? I need to run the package on demand from .NET.

Thanks,








Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: cmdExec Problem - 08-12-2004 , 12:10 AM



Have a look at this

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote

Quote:
But, what kind of permissions/rights the non-sysadmin needs to run the
job?

thanks,
Sreenath

"Allan Mitchell" wrote:

Go to the SQL Server Agent of the Server on which your job runs in EM

Right Click | Properties | Job System tab



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote in message
news:2AA12D0C-F9F8-4A51-A1A4-4747656B71C3 (AT) microsoft (DOT) com...
Where do I see the SQL Server Agent Properties?

I have only SQL Server Enterprise Edition Client installation. Does
it
show
on server installation?

Sreenath

"Allan Mitchell" wrote:

You need to look in SQL Server Agent properties.
You can disallow/allow non sysadmins to run this type of job step



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote in message
news:AFCDF631-3DCE-4610-995E-719955F0F9AC (AT) microsoft (DOT) com...
hi,
I am having problems with the Package Execution in Jobs.

I created a Job and a step for the job to execute the Package with
subsystem
option is cmdExec (I think that's the right one) and dtsrun in the
command
line with options. If I run on the sql server client command line
using
dtsrun, it works fine. But, If I run the above created job using
sp_start_job, then it is failing saying "nonsysadmin denied
cmdExec
job
steps".
How to fix the problem? I need to run the package on demand from
..NET.

Thanks,










Reply With Quote
  #5  
Old   
Sreenath
 
Posts: n/a

Default Re: cmdExec Problem - 08-12-2004 , 06:57 PM



Actually, after several attempts and several combinations, I am thinking that
if any package contains Dynamic Properties task, then loading that package
into the parent package and running the parent package is failing. For some
reason, it is giving the following error for loading any package which
contains the Dynamic Properties Task. Am I wrong?

I am executing the parent package using VB.NET as in
http://www.sqldts.com/default.aspx?265 and having only the dlls which
were described in http://www.sqldts.com/default.aspx?225

Help me....


"Sreenath" wrote:

Quote:
Thank you Allan,
But, still I had some other problems with that approach. so, I followed the
approach in www.sqldts.com/225 by registering the DLLs etc. Then I have
having anothing problem of "Invalid Class String".

It seems to me that the class id of the DTS Package is not matching. I am
getting the following error in my log file:

Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:Invalid class string
(Microsoft Data Transformation Services (DTS) Package (80004005): Invalid
class string
)

Step Error code: 800401F3
Step Error Help File:sqldts80.hlp
Step Error Help Context ID:1100



HOw to solve this?


"Allan Mitchell" wrote:

Have a look at this

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote in message
news:A54BBBDF-229D-49E9-9485-4BBD78F46933 (AT) microsoft (DOT) com...
But, what kind of permissions/rights the non-sysadmin needs to run the
job?

thanks,
Sreenath

"Allan Mitchell" wrote:

Go to the SQL Server Agent of the Server on which your job runs in EM

Right Click | Properties | Job System tab



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote in message
news:2AA12D0C-F9F8-4A51-A1A4-4747656B71C3 (AT) microsoft (DOT) com...
Where do I see the SQL Server Agent Properties?

I have only SQL Server Enterprise Edition Client installation. Does
it
show
on server installation?

Sreenath

"Allan Mitchell" wrote:

You need to look in SQL Server Agent properties.
You can disallow/allow non sysadmins to run this type of job step



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Sreenath" <Sreenath (AT) discussions (DOT) microsoft.com> wrote in message
news:AFCDF631-3DCE-4610-995E-719955F0F9AC (AT) microsoft (DOT) com...
hi,
I am having problems with the Package Execution in Jobs.

I created a Job and a step for the job to execute the Package with
subsystem
option is cmdExec (I think that's the right one) and dtsrun in the
command
line with options. If I run on the sql server client command line
using
dtsrun, it works fine. But, If I run the above created job using
sp_start_job, then it is failing saying "nonsysadmin denied
cmdExec
job
steps".
How to fix the problem? I need to run the package on demand from
..NET.

Thanks,











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.