Collapse the table of content
Expand the table of content
Expand Minimize

SqlDataRecord.GetSqlInt32 Method (Int32)


Gets the value for the column specified by the ordinal as a SqlInt32.

Namespace:   Microsoft.SqlServer.Server
Assembly:  System.Data (in System.Data.dll)

public virtual SqlInt32 GetSqlInt32(
	int ordinal


Type: System.Int32

The zero-based ordinal of the column.

Return Value

Type: System.Data.SqlTypes.SqlInt32

The column value as a SqlInt32.

Exception Condition

The ordinal is less than 0 or greater than the number of columns (that is, FieldCount).


There is a type mismatch.

.NET Framework
Available since 2.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft