LastRow Property
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The LastRow property is an ordinal value defining the end point for a bulk data copy.
語法
object.LastRow [=value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
A long integer that specifies a data file or Microsoft SQL Server table row
Data Type
Long
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetLastRow(LPLONG pRetVal);
HRESULT SetLastRow(LONG NewValue);
備註
If data is copied from SQL Server using the ExportData method of a Table or View object, the property indicates the end row position in the SQL Server table. If data is copied to SQL Server by using the ImportData method of a Table object, the property indicates the end row position in the source data file. The row if the last one copied to the SQL Server table.