Quantcast
Channel: SQL Server Database Engine Forum
Viewing all articles
Browse latest Browse all 15872

Executing a store procedure shutting down the sql server instance.

$
0
0

I’m executing a stored procedure from a C# program on SQL server 2008 r1.

In my stored procedure, I’m connecting to a linked DB2/A400 database and inserting some data to a db2 table.

When I run this stored procedure 4 times in a loop, after the execution it’s shutting down the SQL server instance.

This was working fine for many months. Suddenly it’s started giving the error.

Following is the error in sql server error log

Message

SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is configured to auto restart).

If I don’t run the stored procedure in a loop, it works fine.

Any help is appreciated.


Viewing all articles
Browse latest Browse all 15872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>