Share via


SqlProviderServices.UseScopeIdentity Property

Definition

Gets or sets a value indicating whether to use the SCOPE_IDENTITY() function to retrieve values generated by the database for numeric columns during an INSERT operation. The default value of true is recommended and can provide better performance if all numeric values are generated using IDENTITY columns. If set to false, an OUTPUT clause will be used instead. An OUTPUT clause makes it possible to retrieve values generated by sequences or other means.

public static bool UseScopeIdentity { get; set; }
member this.UseScopeIdentity : bool with get, set
Public Shared Property UseScopeIdentity As Boolean

Property Value

Applies to