SqlExecutionException.Server Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the SQL Server instance being accessed when the exception occurred.
public:
property System::String ^ Server { System::String ^ get(); };
public string Server { get; }
member this.Server : string
Public ReadOnly Property Server As String
Property Value
The name of the SQL Server instance being accessed when the exception occurred.
Examples
The following code example shows how to access the Server property of the SqlExecutionException exception type. This code example is part of a larger example provided for the SqlServices type.
Console.WriteLine(" Server: {0}",
sqlExecutionException.Server);
Console.WriteLine(" Server: {0}", _
sqlExecutionException.Server)
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.