Stored procedure in scheduler in SQL Server 2005 - sql

I am using SQL Server 2005.
I have a stored procedure [say Sp_GetAllMaterialInfo], I want to put it in a scheduler that everyday this stored procedure execute on 2 P.M. daily.
Please let me know the steps I have to follow to achieve in SQL Server 2005
Thanks in advance.

Create a sql server agent job.

How to schedule a job in SQL server:
http://technet.microsoft.com/en-us/library/ms191439.aspx

Or if you are using Express edition the approach here might help http://www.sqldbatips.com/showarticle.asp?ID=27 (Gives an example of how to run a procedure a as scheduled task)
Or a free utility to achieve the same thing as SQL Agent is here (I've not used it myself) http://www.lazycoding.com/products.aspx

Related

SQL Server 2005 or Visual Studio 2005 - writing my first procedure, any tips or good starting points?

I'm about to write my first procedure to check if yesterdays data exists in one database, and if it select some of the data, use a count and insert that data into another database. If the data doesn't exist, then send me an email.
I'm using SQL Server 2005 and I'd like to ask the community for tips or good starting knowledge on smart procedure coding.
Thanks!
Here is an article on MSDN about stored procedures on SQL Serve 2005 that should help.

How can I post updates (commits) in oracle db to SQL Server 2005

We have an application (BaaN) on Oracle Database.
We also have an application that is on SQL Server 2005 which uses Oracle (BaaN) contents.
Currently we cache all contents of the Oracle DB to SQL Server nightly through linked server from SQL Server to Oracle.
Thought of using a trigger on Oracle db tables to write contents to Oracle table (DeltaCommits) as the commits occur, and then periodically look for entries in DeltaCommits from SQL Server using a scheduled job.
Or can you please suggest a better way to accomplish this ..
Thanks
It's possible to use replication to transfer data between Oracle and SQL server.
This guide looks like a useful starting point which may help you to decide whether this is a route you want to consider.

How to schedule a stored procedure?

How do I schedule a stored procedure in Sql Server 2005 that it runs once at the start of every month (and on database startup)?
You will need to create a job using the SQL Server Agent.
In SQL Server Management Studio, go expand the SQL Server Agent node under the DB server, right click the Jobs folder and select New Job...
(If the SQL Server Agent node does not appear, you may be missing the required permissions)
That will take you through a wizard to schedule a sproc to run on whatever schedule you want.
In terms of how to get a sproc to run on db startup, see this article.

Transferring SQL Jobs from SQL 2005 to SQL 2008

Can someone tell me what the most efficient way to transfer SQL Jobs from SQL Server 2005 to sql 2008. I'm currently upgrading my sql servers to 2008. Thanks!
You should try SMO. It will generate a script that you can run to your new instance. Or try it manually:
hit F7 key after selecting the Jobs folder, it will bring up the summary pane and from there select the jobs you want and right click - >Script

Creating a job in SQL Server 2005

Am pretty new to SQL Server 2005. Can someone help me to create a job in SQL Server? This link(http://www.databasedesign-resource.com/sql-server-jobs.html) says to create under the jobs category in managememt tab. But i am not able to find one such category in my SQL Server Management Studio. Is it not possible to create a job using stored procedures or queries?
Thanks,
Geetha
In 2005 it's sql server agent -> jobs
For tsql read this