ServerBCPDataFileType Property (SQL-DMO)

The ServerBCPDataFileType property specifies the format for an imported data file.

Applies To

BulkCopy Object

Syntax

object.ServerBCPDataFileType [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value Long integer specifying bulk copy data file character type as described in Settings

Settings
Constant Value Description
SQLDMOBCPDataFile_Char 1 Read a data file as character data. Interpret the data file using the character set specified.
SQLDMOBCPDataFile_Default 1 SQLDMOBCPDataFile_
Char.
SQLDMOBCPDataFile_Native 2 Assume bulk copy native data format when reading the data file.
SQLDMOBCPDataFile_WideChar 4 Read a data file as Unicode character data.
SQLDMOBCPDataFile_WideNative 8 Assume bulk copy wide native data format when reading the data file. Import treats all character data types as wide character (Unicode).

Remarks

The ServerBCPDataFileType property is interpreted only when importing data and when the UseServerSideBCP property of the BulkCopy object is True.

When ServerBCPDataFileType is SQLDMOBCPDataFile_Char, specify a character set by using the SetCodePage method.

Data Type

Long, enumerated.

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetServerBCPDataFileType(
SQLDMO_SERVERBCP_DATAFILE_TYPE FAR* pRetVal);

HRESULT SetServerBCPDataFileType(
SQLDMO_SERVERBCP_DATAFILE_TYPE NewValue);

See Also
SetCodePage Method UseServerSideBCP Property

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.