Click here to Skip to main content
15,902,299 members
Home / Discussions / Database
   

Database

 
GeneralSyncing different DataAdapters Pin
Jim_Stanley10-Jan-05 11:44
Jim_Stanley10-Jan-05 11:44 
Generalbig problem Pin
WDI10-Jan-05 11:33
WDI10-Jan-05 11:33 
Generala very big problem Pin
WDI10-Jan-05 11:29
WDI10-Jan-05 11:29 
GeneralRe: a very big problem Pin
Colin Angus Mackay10-Jan-05 13:16
Colin Angus Mackay10-Jan-05 13:16 
GeneralExcelt and ADO .NET !!! made me cry now!!! Pin
fadee10-Jan-05 5:32
fadee10-Jan-05 5:32 
GeneralRe: Excelt and ADO .NET !!! made me cry now!!! Pin
Rob Graham10-Jan-05 13:53
Rob Graham10-Jan-05 13:53 
GeneralRe: Excelt and ADO .NET !!! made me cry now!!! Pin
fadee10-Jan-05 17:02
fadee10-Jan-05 17:02 
GeneralSQL Job Failed Pin
sayhigh9-Jan-05 16:09
sayhigh9-Jan-05 16:09 
Good day SQL experts and seniors,

I have a SQL job which is scheduled to run everytime when SQL agent starts.
The job will invoke a stored procedure. This stored procedure will run
continuously using "While Loop" by referring to a flag stored inside a SQL
table. If the flag is set to "OFF", the stored procedure will stop.

Problem arises when CPU usage is high whereby the job will be terminated
unexpectedly with an error message "Executed as user: SERVER_NT_P1\SysAdmin.
ConnectionRead (recv()). [SQLSTATE 01000] (Message 10054) General network
error. Check your network documentation. [SQLSTATE 08S01] (Error 11). The
step failed". The MSSQL is already installed with service pack 3 and in
normal condition the job can continue executing for days.

What is the root cause of this issue? Inside my code, there is no any SQL
statement which is called across database server (only got statement to grab
record from other database resided in the same server). Anything I can do to
avoid this error from occuring?

Below are the stored procedure called by my SQL job:
------------------------------------------------------------------------------
CREATE    Procedure Proc_RE_On_Off_Process<br />
As<br />
<br />
declare @execution_status varchar(5)<br />
declare @delay_time varchar(10)<br />
<br />
select @execution_status = RE_On_Off_Flag from SPC_RE_On_Off_Process<br />
<br />
if @execution_status <> 'ON'<br />
begin<br />
	insert into SPC_RE_On_Off_Log <br />
	values (getdate(), 'RE process is not started')<br />
end<br />
else<br />
begin<br />
	insert into SPC_RE_On_Off_Log<br />
	values (getdate(), 'RE process is started')<br />
end<br />
<br />
while @execution_status = 'ON'<br />
begin<br />
	exec Proc_Run_RE_Jobs<br />
	<br />
	if @@Error <> 0<br />
	begin<br />
		insert into SPC_RE_On_Off_Log<br />
		values (getdate(), 'Process stopped due to error: ' + cast(@@Error as <br />
varchar(20)))<br />
		break	<br />
	end<br />
	else<br />
	begin<br />
		select @execution_status = RE_On_Off_Flag, @delay_time = RE_Delay_Time <br />
from SPC_RE_On_Off_Process<br />
		if @execution_status <> 'ON'<br />
		begin<br />
			insert into SPC_RE_On_Off_Log <br />
			values (getdate(), 'RE process is terminated')<br />
			break<br />
		end<br />
		else<br />
		begin<br />
			waitfor delay @delay_time<br />
		end<br />
	end	<br />
end

------------------------------------------------------------------------------

Any idea would be greatly appreciated. Thanks Smile | :)


SayHigh Soon
GeneralProblem is.... Pin
KORCARI8-Jan-05 8:20
KORCARI8-Jan-05 8:20 
GeneralRe: Problem is.... Pin
mysorian9-Jan-05 3:35
professionalmysorian9-Jan-05 3:35 
QuestionHow can I... Pin
KORCARI7-Jan-05 13:33
KORCARI7-Jan-05 13:33 
AnswerRe: How can I... Pin
Roger Wright7-Jan-05 14:01
professionalRoger Wright7-Jan-05 14:01 
GeneralMy problem... Pin
KORCARI7-Jan-05 13:30
KORCARI7-Jan-05 13:30 
GeneralRe: My problem... Pin
Colin Angus Mackay8-Jan-05 6:59
Colin Angus Mackay8-Jan-05 6:59 
GeneralSQL Statement Problem Pin
Anonymous7-Jan-05 5:24
Anonymous7-Jan-05 5:24 
GeneralRe: SQL Statement Problem Pin
Mike Ellison7-Jan-05 5:33
Mike Ellison7-Jan-05 5:33 
GeneralRe: SQL Statement Problem Pin
Anonymous7-Jan-05 8:22
Anonymous7-Jan-05 8:22 
GeneralRe: SQL Statement Problem Pin
Mike Ellison7-Jan-05 9:14
Mike Ellison7-Jan-05 9:14 
GeneralRe: SQL Statement Problem Pin
Anonymous7-Jan-05 10:23
Anonymous7-Jan-05 10:23 
GeneralRe: SQL Statement Problem Pin
Colin Angus Mackay7-Jan-05 10:39
Colin Angus Mackay7-Jan-05 10:39 
GeneralRe: SQL Statement Problem Pin
Anonymous7-Jan-05 11:07
Anonymous7-Jan-05 11:07 
GeneralRe: SQL Statement Problem Pin
Colin Angus Mackay7-Jan-05 11:13
Colin Angus Mackay7-Jan-05 11:13 
GeneralRe: SQL Statement Problem Pin
Colin Angus Mackay7-Jan-05 10:42
Colin Angus Mackay7-Jan-05 10:42 
GeneralRe: SQL Statement Problem Pin
David Salter7-Jan-05 5:36
David Salter7-Jan-05 5:36 
GeneralRe: SQL Statement Problem Pin
Anonymous7-Jan-05 6:46
Anonymous7-Jan-05 6:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.