Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlDataReader.GetSqlValue Method

Gets an Object that is a representation of the underlying SqlDbType Variant.

[Visual Basic]
Public Function GetSqlValue( _
   ByVal i As Integer _
) As Object
[C#]
public object GetSqlValue(
 int i
);
[C++]
public: Object* GetSqlValue(
 int i
);
[JScript]
public function GetSqlValue(
   i : int
) : Object;

Parameters

i
The zero-based column ordinal.

Return Value

An Object that is a representation of the underlying SqlDbType Variant.

Remarks

GetSqlValue returns data using the native SQL Server types. To retrieve data using the .NET Framework types, see GetValue.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SqlDataReader Class | SqlDataReader Members | System.Data.SqlClient Namespace

Show:
© 2015 Microsoft