SQL Server crashes with an access violation when you use the TRY…CATCH construct for bulk copy

Applies to: SQL Server 2012 DeveloperSQL Server 2012 EnterpriseSQL Server 2012 Enterprise Core


Consider the following scenario:

  • You perform a bulk copy operation in SQL Server.
  • The operation triggers a call to a common language runtime (CLR) function.
  • The CLR function executes a Transact-SQL statement that contains a TRY…CATCH construct.

In this scenario, SQL Server crashes and generates an access violation. Additionally, a dump file is generated in the SQL Server error log.


This issue is fixed in the following cumulative updates of SQL Server:


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.


Learn about the terminology that Microsoft uses to describe software updates.