SQLUINTEGER fileOption = SQL_FILE_OVERWRITE;
SQLINTEGER fileInd = 0;
SQLSMALLINT fileNameLength = 14;
/* ... */
SQLCHAR fileName[14] = "";
/* ... */
rc = SQLBindFileToCol(hstmt, 1, fileName, &fileNameLength,
&fileOption, 14, NULL, &fileInd);
SQLUINTEGER fileOption = SQL_FILE_OVERWRITE;
SQLINTEGER fileInd = 0;
SQLSMALLINT fileNameLength = 14;
/* ... */
SQLCHAR fileName[14] = "";
/* ... */
rc = SQLBindFileToParam(hstmt, 3, SQL_BLOB, fileName,
&fileNameLength, &fileOption, 14, &fileInd);
The file name is either the complete path name of the file (which is recommended), or a relative file name. If a relative file name is provided, it is appended to the current path (of the operating environment) of the client process. On execute or fetch, data transfer to and from the file would take place, in a similar way to that of bound application variables. A file options argument associated with these 2 functions indicates how the files are to be handled at time of transfer.