Export (0) Print
Expand All

SqlExecutionException Class

Defines a class for SQL execution exceptions in the System.Web.Management namespace.

Namespace: System.Web.Management
Assembly: System.Web (in system.web.dll)

[SerializableAttribute] 
public sealed class SqlExecutionException : SystemException
/** @attribute SerializableAttribute() */ 
public final class SqlExecutionException extends SystemException
SerializableAttribute 
public final class SqlExecutionException extends SystemException
Not applicable.

This class is provided as a means to differentiate SQL execution exceptions from other application exceptions.

The following code example shows how to use the SqlExecutionException exception type. This code example is part of a larger example provided for the SqlServices class.

Console.WriteLine(
	"An SQL execution exception occurred.");
Console.WriteLine();
Console.WriteLine("  Message: {0}",
	sqlExecutionException.Message);
Console.WriteLine("  Server: {0}",
	sqlExecutionException.Server);
Console.WriteLine("  Database: {0}",
	sqlExecutionException.Database);
Console.WriteLine("  Commands: {0}",
	sqlExecutionException.Commands);
Console.WriteLine("  SqlFile: {0}",
	sqlExecutionException.SqlFile);
Console.WriteLine("  Inner Exception: {0}",
	sqlExecutionException.Exception);

System.Object
   System.Exception
     System.SystemException
      System.Web.Management.SqlExecutionException

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft