Current File : /home/inlingua/public_html/decay_sym/root/usr/local/apps/share/doc/freetds/reference/a00371.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: The db-lib API</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><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><!-- top -->
<!-- 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 class="header">
<div class="summary">
<a href="#groups">Modules</a> |
<a href="#define-members">Macros</a> </div>
<div class="headertitle">
<div class="title">The db-lib API</div> </div>
</div><!--header-->
<div class="contents">
<p>Functions callable by <code>db-lib</code> client programs.
<a href="#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for The db-lib API:</div>
<div class="dyncontent">
<center><table><tr><td><div class="center"><iframe scrolling="no" frameborder="0" src="a00371.svg" width="368" height="342"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:a00372"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00372.html">Primary functions</a></td></tr>
<tr class="memdesc:a00372"><td class="mdescLeft"> </td><td class="mdescRight">Core functions needed by most db-lib programs. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a00373"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00373.html">Remote Procedure functions</a></td></tr>
<tr class="memdesc:a00373"><td class="mdescLeft"> </td><td class="mdescRight">Functions used with stored procedures. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a00374"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00374.html">Bulk copy functions</a></td></tr>
<tr class="memdesc:a00374"><td class="mdescLeft"> </td><td class="mdescRight">Functions to bulk-copy (a/k/a <em>bcp</em>) data to/from the database. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a00376"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html">Money functions</a></td></tr>
<tr class="memdesc:a00376"><td class="mdescLeft"> </td><td class="mdescRight">Functions to manipulate the MONEY datatype. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a00377"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00377.html">Datetime functions</a></td></tr>
<tr class="memdesc:a00377"><td class="mdescLeft"> </td><td class="mdescRight">Functions to manipulate <a class="el" href="a00062.html">DBDATETIME</a> structures. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a00378"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00378.html">Internals</a></td></tr>
<tr class="memdesc:a00378"><td class="mdescLeft"> </td><td class="mdescRight">Functions called within <code>db-lib</code> for self-help. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a00379"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00379.html">Unimplemented</a></td></tr>
<tr class="memdesc:a00379"><td class="mdescLeft"> </td><td class="mdescRight">Functions thus far not implemented in the FreeTDS db-lib implementation. <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="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga5a626d228e82be0af8449d2b8c278241"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00371.html#ga5a626d228e82be0af8449d2b8c278241">BCP_SETL</a>(x, y)   <a class="el" href="a00378.html#ga03e850369aca6fba074da5e9da4effd7">dbsetlbool</a>((x), (y), DBSETBCP)</td></tr>
<tr class="memdesc:ga5a626d228e82be0af8449d2b8c278241"><td class="mdescLeft"> </td><td class="mdescRight">Enable (or prevent) bcp operations for connections made with a login. <a href="#ga5a626d228e82be0af8449d2b8c278241">More...</a><br /></td></tr>
<tr class="separator:ga5a626d228e82be0af8449d2b8c278241"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab6c2da7fd615cf7462d555e5387a5580"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00371.html#gab6c2da7fd615cf7462d555e5387a5580">DBSETLAPP</a>(x, y)   <a class="el" href="a00378.html#gae1fc46447c4f8a9ff7f66607b8cd23b6">dbsetlname</a>((x), (y), DBSETAPP)</td></tr>
<tr class="memdesc:gab6c2da7fd615cf7462d555e5387a5580"><td class="mdescLeft"> </td><td class="mdescRight">Set the (client) application name in the login packet. <a href="#gab6c2da7fd615cf7462d555e5387a5580">More...</a><br /></td></tr>
<tr class="separator:gab6c2da7fd615cf7462d555e5387a5580"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaef0e7a5fcf2d8c8f795b2b06ce4de8b1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00371.html#gaef0e7a5fcf2d8c8f795b2b06ce4de8b1">DBSETLHOST</a>(x, y)   <a class="el" href="a00378.html#gae1fc46447c4f8a9ff7f66607b8cd23b6">dbsetlname</a>((x), (y), DBSETHOST)</td></tr>
<tr class="memdesc:gaef0e7a5fcf2d8c8f795b2b06ce4de8b1"><td class="mdescLeft"> </td><td class="mdescRight">Set the (client) host name in the login packet. <a href="#gaef0e7a5fcf2d8c8f795b2b06ce4de8b1">More...</a><br /></td></tr>
<tr class="separator:gaef0e7a5fcf2d8c8f795b2b06ce4de8b1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga61e04e8e2f0d7f1740d40634041f98eb"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00371.html#ga61e04e8e2f0d7f1740d40634041f98eb">DBSETLPWD</a>(x, y)   <a class="el" href="a00378.html#gae1fc46447c4f8a9ff7f66607b8cd23b6">dbsetlname</a>((x), (y), DBSETPWD)</td></tr>
<tr class="memdesc:ga61e04e8e2f0d7f1740d40634041f98eb"><td class="mdescLeft"> </td><td class="mdescRight">Set the password in the login packet. <a href="#ga61e04e8e2f0d7f1740d40634041f98eb">More...</a><br /></td></tr>
<tr class="separator:ga61e04e8e2f0d7f1740d40634041f98eb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafbe7e48171d2f9b1d4f99e0bfdd98f5e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00371.html#gafbe7e48171d2f9b1d4f99e0bfdd98f5e">DBSETLUSER</a>(x, y)   <a class="el" href="a00378.html#gae1fc46447c4f8a9ff7f66607b8cd23b6">dbsetlname</a>((x), (y), DBSETUSER)</td></tr>
<tr class="memdesc:gafbe7e48171d2f9b1d4f99e0bfdd98f5e"><td class="mdescLeft"> </td><td class="mdescRight">Set the username in the login packet. <a href="#gafbe7e48171d2f9b1d4f99e0bfdd98f5e">More...</a><br /></td></tr>
<tr class="separator:gafbe7e48171d2f9b1d4f99e0bfdd98f5e"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Functions callable by <code>db-lib</code> client programs. </p>
<p>The <code>db_lib</code> interface is implemented by both Sybase and Microsoft. FreeTDS seeks to implement first the intersection of the functions defined by the vendors. </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ga5a626d228e82be0af8449d2b8c278241"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">BCP_SETL</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">x, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">y </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>   <a class="el" href="a00378.html#ga03e850369aca6fba074da5e9da4effd7">dbsetlbool</a>((x), (y), DBSETBCP)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Enable (or prevent) bcp operations for connections made with a login. </p>
<dl class="section see"><dt>See also</dt><dd>bcp_setl() </dd></dl>
</div>
</div>
<a class="anchor" id="gab6c2da7fd615cf7462d555e5387a5580"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">DBSETLAPP</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">x, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">y </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>   <a class="el" href="a00378.html#gae1fc46447c4f8a9ff7f66607b8cd23b6">dbsetlname</a>((x), (y), DBSETAPP)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the (client) application name in the login packet. </p>
<dl class="section see"><dt>See also</dt><dd>dbsetlapp() </dd></dl>
</div>
</div>
<a class="anchor" id="gaef0e7a5fcf2d8c8f795b2b06ce4de8b1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">DBSETLHOST</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">x, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">y </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>   <a class="el" href="a00378.html#gae1fc46447c4f8a9ff7f66607b8cd23b6">dbsetlname</a>((x), (y), DBSETHOST)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the (client) host name in the login packet. </p>
<dl class="section see"><dt>See also</dt><dd>dbsetlhost() </dd></dl>
</div>
</div>
<a class="anchor" id="ga61e04e8e2f0d7f1740d40634041f98eb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">DBSETLPWD</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">x, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">y </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>   <a class="el" href="a00378.html#gae1fc46447c4f8a9ff7f66607b8cd23b6">dbsetlname</a>((x), (y), DBSETPWD)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the password in the login packet. </p>
<dl class="section see"><dt>See also</dt><dd>dbsetlpwd() </dd></dl>
</div>
</div>
<a class="anchor" id="gafbe7e48171d2f9b1d4f99e0bfdd98f5e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">DBSETLUSER</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">x, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">y </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>   <a class="el" href="a00378.html#gae1fc46447c4f8a9ff7f66607b8cd23b6">dbsetlname</a>((x), (y), DBSETUSER)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the username in the login packet. </p>
<dl class="section see"><dt>See also</dt><dd>dbsetluser() </dd></dl>
</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>