Hi dharmendr..
thanks for ur information,.
i can figure it out, but i still try for creating task manually for running my store procedure ,
i have create the task with code , and when i execute the query is start but never stop, may be i have miss parameter for stop it..
i gave some sample code for my sql job
thanks
USE [InovatrackVTS]
GO
/****** Object: StoredProcedure [dbo].[Task_Shipment_Assignment] Script Date: 7/6/2017 9:17:28 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[Task_Shipment_Assignment]
AS
BEGIN
SET NOCOUNT ON;
DECLARE @timeToRun nvarchar(50)
set @timeToRun = '12:00:00'
while 1 = 1
begin
waitfor time @timeToRun
begin
execute [InovatrackVTS].[dbo].[sp_shipment_assignment];
end
end
END