Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 3.0
General Reference
Technical Reference
 SetString Method (Int32, String, In...

  Switch on low bandwidth view
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
SetString Method (Int32, String, Int32)

Sets the data, for a parameter or column, as the specified type. No conversions are applied. The assembly that contains this class has a friend relationship with SQLAccess.dll.  It is intended for use by SQL Server.  For other databases, use the hosting mechanism provided by that database.

Namespace: Microsoft.SqlServer.Server

Assembly: System.Data (in System.Data.dll)

Visual Basic
Sub SetString(ByVal ordinal As Integer, ByVal value As String, ByVal offset As Integer)
C#
void SetString (int ordinal, string value, int offset);

Parameters

Parameter Description

ordinal

The zero-based column ordinal.

value

The value for the specified column.

offset

The index within the column value to begin the write operation.

NOTE: Use the corresponding ITypeSettersV3 method.

.NET Framework

Supported in: 2.0

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker