ServerBCPDataFileType Property
この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。
The ServerBCPDataFileType property specifies the format for an imported data file.
構文
object
.ServerBCPDataFileType [= value]
Parts
- object
An expression that evaluates to an object in the Applies To list.
- value
A long integer that specifies bulk-copy data file character type as described in Settings.
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);
Settings
Constant | Value | Description |
---|---|---|
SQLDMOBCPDataFile_Char |
1 |
Reads a data file as character data. It nterprets the data file using the character set specified. |
SQLDMOBCPDataFile_Default |
1 |
SQLDMOBCPDataFile_Char. |
SQLDMOBCPDataFile_Native |
2 |
Assumes bulk-copy native data format when reading the data file. |
SQLDMOBCPDataFile_WideChar |
4 |
Reads a data file as Unicode character data. |
SQLDMOBCPDataFile_/WideNative |
8 |
Assumes bulk-copy wide native data format when reading the data file. It treats all character data types as wide character (Unicode). |
解説
The ServerBCPDataFileType property is interpreted only when data is imported and if the UseServerSideBCP property of the BulkCopy object is TRUE.
If ServerBCPDataFileType is SQLDMOBCPDataFile_Char, specify a character set using the SetCodePage method.
Applies To:
参照
関連項目
SetCodePage Method
UseServerSideBCP Property