Over the next few days we are going to start the migration to a new forum application. I'm going to start with high post count and active users. You may receive an invitation to the new forums. It's not spam. It's just me trying to seed the user base. My goal is to open it up over the weekend.

Once we open the site we'll block registrations here. We should be open shortly on the new site.

SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 Executing a store procedure shutting down the sql
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 02/19/2013 :  16:51:42  Show Profile  Reply with Quote
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.

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

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.

Almighty SQL Goddess

38194 Posts

Posted - 02/19/2013 :  17:23:17  Show Profile  Visit tkizer's Homepage  Reply with Quote
Are you up to date on SQL hotfixes/service packs? Show us the output of SELECT @@VERSION.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000