Column.IdentitySeed Propiedad
Gets or sets the identity seed for an identity column.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property IdentitySeed As Long
Get
Set
'Uso
Dim instance As Column
Dim value As Long
value = instance.IdentitySeed
instance.IdentitySeed = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public long IdentitySeed { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property long long IdentitySeed {
long long get ();
void set (long long value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member IdentitySeed : int64 with get, set
function get IdentitySeed () : long
function set IdentitySeed (value : long)
Valor de la propiedad
Tipo: System.Int64
An Int32 value that specifies the identity seed for an identity column.
Comentarios
The identity seed is the amount that the identity column is set to initially for the first new row.
The Identity property must be set to True before setting this property.
Ejemplos
Trabajar con objetos de bases de datos
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo