Current File : /home/inlingua/public_html/decay_sym/root/usr/local/apps/share/doc/freetds/reference/a00326.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>FreeTDS API: src/tds/bulk.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">FreeTDS API
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_000003.html">src</a></li><li class="navelem"><a class="el" href="dir_000011.html">tds</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">bulk.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Handle bulk copy.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <config.h></code><br />
<code>#include <assert.h></code><br />
<code>#include <<a class="el" href="a00217_source.html">freetds/tds.h</a>></code><br />
<code>#include <freetds/checks.h></code><br />
<code>#include <freetds/bytes.h></code><br />
<code>#include <freetds/iconv.h></code><br />
<code>#include <freetds/stream.h></code><br />
<code>#include <freetds/string.h></code><br />
<code>#include "replacements.h"</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for bulk.c:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00407.svg" width="1674" height="336"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00140.html">tds_file_stream</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">input stream to read a file <a href="a00140.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00156.html">tds_pbcb</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Holds clause buffer. <a href="a00156.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a017b2e89d0641a6af2a84e3953574fb0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a017b2e89d0641a6af2a84e3953574fb0"></a>
typedef struct <a class="el" href="a00140.html">tds_file_stream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a017b2e89d0641a6af2a84e3953574fb0">TDSFILESTREAM</a></td></tr>
<tr class="memdesc:a017b2e89d0641a6af2a84e3953574fb0"><td class="mdescLeft"> </td><td class="mdescRight">input stream to read a file <br /></td></tr>
<tr class="separator:a017b2e89d0641a6af2a84e3953574fb0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a786e761d5de7ac54bff4a948e1dab4b6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a786e761d5de7ac54bff4a948e1dab4b6"></a>
typedef struct <a class="el" href="a00156.html">tds_pbcb</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a786e761d5de7ac54bff4a948e1dab4b6">TDSPBCB</a></td></tr>
<tr class="memdesc:a786e761d5de7ac54bff4a948e1dab4b6"><td class="mdescLeft"> </td><td class="mdescRight">Holds clause buffer. <br /></td></tr>
<tr class="separator:a786e761d5de7ac54bff4a948e1dab4b6"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4daaa551e54dbd978650e2eef89e09ff"><td class="memItemLeft" align="right" valign="top">static TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a4daaa551e54dbd978650e2eef89e09ff">tds7_bcp_send_colmetadata</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00116.html">TDSBCPINFO</a> *bcpinfo)</td></tr>
<tr class="memdesc:a4daaa551e54dbd978650e2eef89e09ff"><td class="mdescLeft"> </td><td class="mdescRight">Send BCP metadata to server. <a href="#a4daaa551e54dbd978650e2eef89e09ff">More...</a><br /></td></tr>
<tr class="separator:a4daaa551e54dbd978650e2eef89e09ff"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3118c7232bc9c3e47f8ba872bb39e967"><td class="memItemLeft" align="right" valign="top">static TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a3118c7232bc9c3e47f8ba872bb39e967">tds7_build_bulk_insert_stmt</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00326.html#a786e761d5de7ac54bff4a948e1dab4b6">TDSPBCB</a> *clause, <a class="el" href="a00120.html">TDSCOLUMN</a> *bcpcol, int first)</td></tr>
<tr class="memdesc:a3118c7232bc9c3e47f8ba872bb39e967"><td class="mdescLeft"> </td><td class="mdescRight">Help to build query to be sent to server. <a href="#a3118c7232bc9c3e47f8ba872bb39e967">More...</a><br /></td></tr>
<tr class="separator:a3118c7232bc9c3e47f8ba872bb39e967"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6d1e3ee3ba4ddeac7d5c9b5e30b185f1"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a6d1e3ee3ba4ddeac7d5c9b5e30b185f1">tds_bcp_add_fixed_columns</a> (<a class="el" href="a00116.html">TDSBCPINFO</a> *bcpinfo, tds_bcp_get_col_data get_col_data, tds_bcp_null_error ignored, int offset, unsigned char *rowbuffer, int start)</td></tr>
<tr class="memdesc:a6d1e3ee3ba4ddeac7d5c9b5e30b185f1"><td class="mdescLeft"> </td><td class="mdescRight">Add fixed size columns to the row. <a href="#a6d1e3ee3ba4ddeac7d5c9b5e30b185f1">More...</a><br /></td></tr>
<tr class="separator:a6d1e3ee3ba4ddeac7d5c9b5e30b185f1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0184a0b53bd92aeca39b136542238dd4"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a0184a0b53bd92aeca39b136542238dd4">tds_bcp_add_variable_columns</a> (<a class="el" href="a00116.html">TDSBCPINFO</a> *bcpinfo, tds_bcp_get_col_data get_col_data, tds_bcp_null_error null_error, int offset, TDS_UCHAR *rowbuffer, int start, int *pncols)</td></tr>
<tr class="memdesc:a0184a0b53bd92aeca39b136542238dd4"><td class="mdescLeft"> </td><td class="mdescRight">Add variable size columns to the row. <a href="#a0184a0b53bd92aeca39b136542238dd4">More...</a><br /></td></tr>
<tr class="separator:a0184a0b53bd92aeca39b136542238dd4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ade7df2db455b61edc83819ad60edb339"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#ade7df2db455b61edc83819ad60edb339">tds_bcp_done</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, int *rows_copied)</td></tr>
<tr class="memdesc:ade7df2db455b61edc83819ad60edb339"><td class="mdescLeft"> </td><td class="mdescRight">Tell we finished sending BCP data to server. <a href="#ade7df2db455b61edc83819ad60edb339">More...</a><br /></td></tr>
<tr class="separator:ade7df2db455b61edc83819ad60edb339"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a86ac92bd8a3c61a413d27150ec9bc202"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a86ac92bd8a3c61a413d27150ec9bc202">tds_bcp_fread</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00182.html">TDSICONV</a> *char_conv, FILE *stream, const char *terminator, size_t term_len, char **outbuf, size_t *outbytes)</td></tr>
<tr class="memdesc:a86ac92bd8a3c61a413d27150ec9bc202"><td class="mdescLeft"> </td><td class="mdescRight">Read a data file, passing the data through iconv(). <a href="#a86ac92bd8a3c61a413d27150ec9bc202">More...</a><br /></td></tr>
<tr class="separator:a86ac92bd8a3c61a413d27150ec9bc202"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac6610c72bd31bad5378f760fa9b12d66"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#ac6610c72bd31bad5378f760fa9b12d66">tds_bcp_init</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00116.html">TDSBCPINFO</a> *bcpinfo)</td></tr>
<tr class="memdesc:ac6610c72bd31bad5378f760fa9b12d66"><td class="mdescLeft"> </td><td class="mdescRight">Initialize BCP information. <a href="#ac6610c72bd31bad5378f760fa9b12d66">More...</a><br /></td></tr>
<tr class="separator:ac6610c72bd31bad5378f760fa9b12d66"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7c4f2b050cd1a747604aa305d6877de7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c4f2b050cd1a747604aa305d6877de7"></a>
static void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a7c4f2b050cd1a747604aa305d6877de7">tds_bcp_row_free</a> (<a class="el" href="a00217.html#a22c989e4b40c76c0bfb64c6610f4a8b6">TDSRESULTINFO</a> *result, unsigned char *row)</td></tr>
<tr class="memdesc:a7c4f2b050cd1a747604aa305d6877de7"><td class="mdescLeft"> </td><td class="mdescRight">Free row data allocated in the result set. <br /></td></tr>
<tr class="separator:a7c4f2b050cd1a747604aa305d6877de7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adbc0876f3d1eae0c26e7a1abe37419fe"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#adbc0876f3d1eae0c26e7a1abe37419fe">tds_bcp_send_record</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00116.html">TDSBCPINFO</a> *bcpinfo, tds_bcp_get_col_data get_col_data, tds_bcp_null_error ignored, int offset)</td></tr>
<tr class="memdesc:adbc0876f3d1eae0c26e7a1abe37419fe"><td class="mdescLeft"> </td><td class="mdescRight">Send one row of data to server. <a href="#adbc0876f3d1eae0c26e7a1abe37419fe">More...</a><br /></td></tr>
<tr class="separator:adbc0876f3d1eae0c26e7a1abe37419fe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8208eef2a3974ae1f0cf3c8c8ab011ce"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a8208eef2a3974ae1f0cf3c8c8ab011ce">tds_bcp_start</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00116.html">TDSBCPINFO</a> *bcpinfo)</td></tr>
<tr class="memdesc:a8208eef2a3974ae1f0cf3c8c8ab011ce"><td class="mdescLeft"> </td><td class="mdescRight">Start sending BCP data to server. <a href="#a8208eef2a3974ae1f0cf3c8c8ab011ce">More...</a><br /></td></tr>
<tr class="separator:a8208eef2a3974ae1f0cf3c8c8ab011ce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5eec23828b0610c58de248c4edb53879"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a5eec23828b0610c58de248c4edb53879">tds_bcp_start_copy_in</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00116.html">TDSBCPINFO</a> *bcpinfo)</td></tr>
<tr class="memdesc:a5eec23828b0610c58de248c4edb53879"><td class="mdescLeft"> </td><td class="mdescRight">Start bulk copy to server. <a href="#a5eec23828b0610c58de248c4edb53879">More...</a><br /></td></tr>
<tr class="separator:a5eec23828b0610c58de248c4edb53879"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab4d7e5309152f54613d52c8469a07fd8"><td class="memItemLeft" align="right" valign="top">static TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#ab4d7e5309152f54613d52c8469a07fd8">tds_bcp_start_insert_stmt</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, <a class="el" href="a00116.html">TDSBCPINFO</a> *bcpinfo)</td></tr>
<tr class="memdesc:ab4d7e5309152f54613d52c8469a07fd8"><td class="mdescLeft"> </td><td class="mdescRight">Prepare the query to be sent to server to request BCP information. <a href="#ab4d7e5309152f54613d52c8469a07fd8">More...</a><br /></td></tr>
<tr class="separator:ab4d7e5309152f54613d52c8469a07fd8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1b83c9db016b481aa1fa0352f976d50d"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a1b83c9db016b481aa1fa0352f976d50d">tds_file_stream_read</a> (<a class="el" href="a00143.html">TDSINSTREAM</a> *stream, void *ptr, size_t len)</td></tr>
<tr class="memdesc:a1b83c9db016b481aa1fa0352f976d50d"><td class="mdescLeft"> </td><td class="mdescRight">Reads a chunk of data from file stream checking for terminator. <a href="#a1b83c9db016b481aa1fa0352f976d50d">More...</a><br /></td></tr>
<tr class="separator:a1b83c9db016b481aa1fa0352f976d50d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab68dead99a2ebec55895a10cd3db5202"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#ab68dead99a2ebec55895a10cd3db5202">tds_writetext_continue</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, const TDS_UCHAR *text, TDS_UINT size)</td></tr>
<tr class="memdesc:ab68dead99a2ebec55895a10cd3db5202"><td class="mdescLeft"> </td><td class="mdescRight">Send some data in the writetext request started by tds_writetext_start. <a href="#ab68dead99a2ebec55895a10cd3db5202">More...</a><br /></td></tr>
<tr class="separator:ab68dead99a2ebec55895a10cd3db5202"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac1e460551f1188620ea478238864ac4b"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#ac1e460551f1188620ea478238864ac4b">tds_writetext_end</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds)</td></tr>
<tr class="memdesc:ac1e460551f1188620ea478238864ac4b"><td class="mdescLeft"> </td><td class="mdescRight">Finish sending writetext data. <a href="#ac1e460551f1188620ea478238864ac4b">More...</a><br /></td></tr>
<tr class="separator:ac1e460551f1188620ea478238864ac4b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7711612cc544a7da2c7aa212b870acb2"><td class="memItemLeft" align="right" valign="top">TDSRET </td><td class="memItemRight" valign="bottom"><a class="el" href="a00326.html#a7711612cc544a7da2c7aa212b870acb2">tds_writetext_start</a> (<a class="el" href="a00168.html">TDSSOCKET</a> *tds, const char *objname, const char *textptr, const char *timestamp, int with_log, TDS_UINT size)</td></tr>
<tr class="memdesc:a7711612cc544a7da2c7aa212b870acb2"><td class="mdescLeft"> </td><td class="mdescRight">Start writing writetext request. <a href="#a7711612cc544a7da2c7aa212b870acb2">More...</a><br /></td></tr>
<tr class="separator:a7711612cc544a7da2c7aa212b870acb2"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Handle bulk copy. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a4daaa551e54dbd978650e2eef89e09ff"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static TDSRET tds7_bcp_send_colmetadata </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00116.html">TDSBCPINFO</a> * </td>
<td class="paramname"><em>bcpinfo</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Send BCP metadata to server. </p>
<p>Only for TDS 7.0+. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramname">bcpinfo</td><td>BCP information </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TDS_SUCCESS or TDS_FAIL. </dd></dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a4daaa551e54dbd978650e2eef89e09ff_cgraph.svg" width="1151" height="446"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a4daaa551e54dbd978650e2eef89e09ff_icgraph.svg" width="868" height="114"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a3118c7232bc9c3e47f8ba872bb39e967"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static TDSRET tds7_build_bulk_insert_stmt </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00326.html#a786e761d5de7ac54bff4a948e1dab4b6">TDSPBCB</a> * </td>
<td class="paramname"><em>clause</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00120.html">TDSCOLUMN</a> * </td>
<td class="paramname"><em>bcpcol</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>first</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Help to build query to be sent to server. </p>
<p>Append column declaration to the query. Only for TDS 7.0+. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir"></td><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">clause</td><td>output string </td></tr>
<tr><td class="paramdir"></td><td class="paramname">bcpcol</td><td>column to append </td></tr>
<tr><td class="paramdir"></td><td class="paramname">first</td><td>true if column is the first </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TDS_SUCCESS or TDS_FAIL. </dd></dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a3118c7232bc9c3e47f8ba872bb39e967_cgraph.svg" width="858" height="340"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a3118c7232bc9c3e47f8ba872bb39e967_icgraph.svg" width="807" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a6d1e3ee3ba4ddeac7d5c9b5e30b185f1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int tds_bcp_add_fixed_columns </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00116.html">TDSBCPINFO</a> * </td>
<td class="paramname"><em>bcpinfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">tds_bcp_get_col_data </td>
<td class="paramname"><em>get_col_data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">tds_bcp_null_error </td>
<td class="paramname"><em>ignored</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>rowbuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>start</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Add fixed size columns to the row. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bcpinfo</td><td>BCP information </td></tr>
<tr><td class="paramname">get_col_data</td><td>function to call to retrieve data to be sent </td></tr>
<tr><td class="paramname">ignored</td><td>function to call if we try to send NULL if not allowed (not used) </td></tr>
<tr><td class="paramname">offset</td><td>passed to get_col_data and null_error to specify the row to get </td></tr>
<tr><td class="paramname">rowbuffer</td><td>row buffer to write to </td></tr>
<tr><td class="paramname">start</td><td>row buffer last end position </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>new row length or -1 on error. </dd></dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a6d1e3ee3ba4ddeac7d5c9b5e30b185f1_cgraph.svg" width="362" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a6d1e3ee3ba4ddeac7d5c9b5e30b185f1_icgraph.svg" width="706" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a0184a0b53bd92aeca39b136542238dd4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int tds_bcp_add_variable_columns </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00116.html">TDSBCPINFO</a> * </td>
<td class="paramname"><em>bcpinfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">tds_bcp_get_col_data </td>
<td class="paramname"><em>get_col_data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">tds_bcp_null_error </td>
<td class="paramname"><em>null_error</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">TDS_UCHAR * </td>
<td class="paramname"><em>rowbuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>pncols</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Add variable size columns to the row. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bcpinfo</td><td>BCP information already prepared </td></tr>
<tr><td class="paramname">get_col_data</td><td>function to call to retrieve data to be sent </td></tr>
<tr><td class="paramname">null_error</td><td>function to call if we try to send NULL if not allowed </td></tr>
<tr><td class="paramname">offset</td><td>passed to get_col_data and null_error to specify the row to get </td></tr>
<tr><td class="paramname">rowbuffer</td><td>The row image that will be sent to the server. </td></tr>
<tr><td class="paramname">start</td><td>Where to begin copying data into the rowbuffer. </td></tr>
<tr><td class="paramname">pncols</td><td>Address of output variable holding the count of columns added to the rowbuffer.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>length of (potentially modified) rowbuffer, or -1. </dd></dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a0184a0b53bd92aeca39b136542238dd4_cgraph.svg" width="362" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a0184a0b53bd92aeca39b136542238dd4_icgraph.svg" width="666" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="ade7df2db455b61edc83819ad60edb339"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_bcp_done </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>rows_copied</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Tell we finished sending BCP data to server. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir"></td><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">rows_copied</td><td>number of rows copied to server </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ade7df2db455b61edc83819ad60edb339_cgraph.svg" width="1936" height="1875"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ade7df2db455b61edc83819ad60edb339_icgraph.svg" width="410" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a86ac92bd8a3c61a413d27150ec9bc202"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_bcp_fread </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00182.html">TDSICONV</a> * </td>
<td class="paramname"><em>char_conv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>terminator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>term_len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char ** </td>
<td class="paramname"><em>outbuf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>outbytes</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read a data file, passing the data through iconv(). </p>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">TDS_SUCCESS</td><td>success </td></tr>
<tr><td class="paramname">TDS_FAIL</td><td>error reading the column </td></tr>
<tr><td class="paramname">TDS_NO_MORE_RESULTS</td><td>end of file detected </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a86ac92bd8a3c61a413d27150ec9bc202_cgraph.svg" width="1134" height="342"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a86ac92bd8a3c61a413d27150ec9bc202_icgraph.svg" width="602" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="ac6610c72bd31bad5378f760fa9b12d66"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_bcp_init </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00116.html">TDSBCPINFO</a> * </td>
<td class="paramname"><em>bcpinfo</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize BCP information. </p>
<p>Query structure of the table to server. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramname">bcpinfo</td><td>BCP information to initialize. Structure should be allocate and table name and direction should be already set. </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ac6610c72bd31bad5378f760fa9b12d66_cgraph.svg" width="2083" height="3244"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ac6610c72bd31bad5378f760fa9b12d66_icgraph.svg" width="227" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="adbc0876f3d1eae0c26e7a1abe37419fe"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_bcp_send_record </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00116.html">TDSBCPINFO</a> * </td>
<td class="paramname"><em>bcpinfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">tds_bcp_get_col_data </td>
<td class="paramname"><em>get_col_data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">tds_bcp_null_error </td>
<td class="paramname"><em>ignored</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>offset</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send one row of data to server. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramname">bcpinfo</td><td>BCP information </td></tr>
<tr><td class="paramname">get_col_data</td><td>function to call to retrieve data to be sent </td></tr>
<tr><td class="paramname">ignored</td><td>function to call if we try to send NULL if not allowed (not used) </td></tr>
<tr><td class="paramname">offset</td><td>passed to get_col_data and null_error to specify the row to get </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TDS_SUCCESS or TDS_FAIL. </dd></dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_adbc0876f3d1eae0c26e7a1abe37419fe_cgraph.svg" width="967" height="304"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_adbc0876f3d1eae0c26e7a1abe37419fe_icgraph.svg" width="458" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a8208eef2a3974ae1f0cf3c8c8ab011ce"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_bcp_start </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00116.html">TDSBCPINFO</a> * </td>
<td class="paramname"><em>bcpinfo</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Start sending BCP data to server. </p>
<p>Initialize stream to accept data. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramname">bcpinfo</td><td>BCP information already prepared </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a8208eef2a3974ae1f0cf3c8c8ab011ce_cgraph.svg" width="1222" height="2363"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a8208eef2a3974ae1f0cf3c8c8ab011ce_icgraph.svg" width="618" height="114"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a5eec23828b0610c58de248c4edb53879"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_bcp_start_copy_in </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00116.html">TDSBCPINFO</a> * </td>
<td class="paramname"><em>bcpinfo</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Start bulk copy to server. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramname">bcpinfo</td><td>BCP information already prepared </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a5eec23828b0610c58de248c4edb53879_cgraph.svg" width="1396" height="606"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a5eec23828b0610c58de248c4edb53879_icgraph.svg" width="463" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="ab4d7e5309152f54613d52c8469a07fd8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static TDSRET tds_bcp_start_insert_stmt </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00116.html">TDSBCPINFO</a> * </td>
<td class="paramname"><em>bcpinfo</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Prepare the query to be sent to server to request BCP information. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramname">bcpinfo</td><td>BCP information </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ab4d7e5309152f54613d52c8469a07fd8_cgraph.svg" width="1064" height="363"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ab4d7e5309152f54613d52c8469a07fd8_icgraph.svg" width="695" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a1b83c9db016b481aa1fa0352f976d50d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int tds_file_stream_read </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00143.html">TDSINSTREAM</a> * </td>
<td class="paramname"><em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>len</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Reads a chunk of data from file stream checking for terminator. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">stream</td><td>file stream </td></tr>
<tr><td class="paramname">ptr</td><td>buffer where to read data </td></tr>
<tr><td class="paramname">len</td><td>length of buffer </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a1b83c9db016b481aa1fa0352f976d50d_icgraph.svg" width="674" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="ab68dead99a2ebec55895a10cd3db5202"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_writetext_continue </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const TDS_UCHAR * </td>
<td class="paramname"><em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">TDS_UINT </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Send some data in the writetext request started by tds_writetext_start. </p>
<p>You should write in total (with multiple calls to this function) all bytes declared calling tds_writetext_start. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramname">text</td><td>data to write </td></tr>
<tr><td class="paramname">size</td><td>data size in bytes </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ab68dead99a2ebec55895a10cd3db5202_cgraph.svg" width="776" height="114"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ab68dead99a2ebec55895a10cd3db5202_icgraph.svg" width="314" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="ac1e460551f1188620ea478238864ac4b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_writetext_end </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Finish sending writetext data. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ac1e460551f1188620ea478238864ac4b_cgraph.svg" width="774" height="114"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_ac1e460551f1188620ea478238864ac4b_icgraph.svg" width="286" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a7711612cc544a7da2c7aa212b870acb2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TDSRET tds_writetext_start </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00168.html">TDSSOCKET</a> * </td>
<td class="paramname"><em>tds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>objname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>textptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>timestamp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>with_log</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">TDS_UINT </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Start writing writetext request. </p>
<p>This request start a bulk session. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tds</td><td>A pointer to the TDSSOCKET structure managing a client/server operation. </td></tr>
<tr><td class="paramname">objname</td><td>table name </td></tr>
<tr><td class="paramname">textptr</td><td>TEXTPTR (see sql documentation) </td></tr>
<tr><td class="paramname">timestamp</td><td>data timestamp </td></tr>
<tr><td class="paramname">with_log</td><td>is log is enabled during insert </td></tr>
<tr><td class="paramname">size</td><td>bytes to be inserted </td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a7711612cc544a7da2c7aa212b870acb2_cgraph.svg" width="1610" height="1826"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00326_a7711612cc544a7da2c7aa212b870acb2_icgraph.svg" width="288" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Feb 15 2017 09:01:18 for FreeTDS API by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>