Discussion:
automating running a stored procedure
(too old to reply)
Gerhard
2008-11-13 20:47:26 UTC
Permalink
I'm using SQL Server 2005, and need to automate running a stored procedure
once a day. Used to use DTS package to do that, but that is not in version
2005. Can you please tell me what the most straightforward way to do this
is? Thanks.
Todd C
2008-11-13 20:59:07 UTC
Permalink
SQL Server Agent is what you need. DTS or SSIS have no inherent capabilities
to start themselves up. They both rely on SQL Agent for scheduling.
--
Todd C
Post by Gerhard
I'm using SQL Server 2005, and need to automate running a stored procedure
once a day. Used to use DTS package to do that, but that is not in version
2005. Can you please tell me what the most straightforward way to do this
is? Thanks.
Mark Han[MSFT]
2008-11-14 07:13:09 UTC
Permalink
Hi Gerthard,

Thank you for using Microsoft MSDN Managed Newsgroup. My name is Mark Han.
I am glad to work with you on this issue.

Based on the description, I understand that you would like to run a stored
prodedure once a day. If I have misunderstood, please let me know. That
will help us resolve the issue quickly.

In order to address your concern, I would like to explain the following.
1 If the edition of the SQL Server is not express, it is suggested to
create a job to run the stored procedure. For your convenient, I list the
detail steps here.
a create a job(sp_add_job)
There is an article to share with
you:http://msdn.microsoft.com/en-us/library/ms182079.aspx.
b add a job step(sp_add_jobstep)
There is an article to share with you:
http://msdn.microsoft.com/enus/library/ms187358.aspx
Note, it is supported to use Management Studio to create a job with step
also. and to run a job, we need to start SQL Agent service.

2 If you use SQL Server express edition, since the SQL Agent Service is not
available on the edition, we need to create a windows schedule task and run
the stored procedure. There is an article to share with you:
http://support.microsoft.com/kb/308569

If there is anything unclear, please let me know.

Best regards,
Mark Han
Microsoft Online Community Support
===========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: ***@microsoft.com.
===========================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or
a Microsoft Support Engineer within 2 business day is acceptable. Please
note that each follow up response may take approximately
2 business days as the support professional working with you may need
further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are
best handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx

============================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
Mark Han[MSFT]
2008-11-18 06:29:33 UTC
Permalink
Hi Gerthard,

This is Matk. I'm writing to follow the issue.

If I can assist you anything related to the issue, pleae tell me.

I look forward to your update

Best regards,
Mark Han
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: ***@microsoft.com.
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================

Continue reading on narkive:
Loading...