Link to home
Start Free TrialLog in
Avatar of renoduke
renoduke

asked on

xp_start_job

We are running SQL Server 2008 64 Bit.  Ultimately we want to execute an SSIS job from a stroed procedure.  The SSIS job is a simple job that imports data from MS Access table.  No parameters need to be passed to the job.  It simply needs to be executed from a Stored Procedure.

We have integration services installed on the same server.

We crated the job called GLExport.  The job is saved on the server.  It is located int he MSDB.  The package can be run with out issue from Integration Services.  

This is the command we are trying to run from a query window:
exec msdb.dbo.sp_start_job @job_name='GLExport'

We get this error message:
Msg 14262, Level 16, State 1, Procedure sp_verify_job_identifiers, Line 67
The specified @job_name ('GLExport') does not exist.

The job does exist within integration services.  However if I run select * from sysjobs my job is not there?  

Can someone please clarify how tu use the sp_start_job and pass in the proper SSIS job and or location?

Thank you
ASKER CERTIFIED SOLUTION
Avatar of pssandhu
pssandhu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of renoduke
renoduke

ASKER

Thank you!  My confusion has to do with a job and SSIS package.  I did not create the job as you suggested.  For others the SSIS package is the first step.  The final step is createing the job.

Works great.
Thanks again.
No problem!