📄 connection.html
字号:
<html><head><meta name="KEYWORDS" content=" library, C++, Oracle, SQLServer, DB2, Sybase, Informix, InterBase, SQLBase, ODBC,
SQL, server, client, database, programming, development, software,
Win32, Windows, Linux, Unix, Solaris,
Microsoft, Borland, Centura, Gupta, IBM"><meta name="DESCRIPTION" content=
"SQLAPI++ is C++ library for accessing SQL databases (Oracle, SQLServer, Sybase, DB2, InterBase, SQLBase, Informix, ODBC).
It uses native APIs, provides low-level access to database-specific features."><title>SQLAPI++ Library - Online Documentation - SAConnection</title></head><body bgcolor="#ffffff" BACKGROUND="../images/bg.gif" text="#000000"><!--GlbHdr--> <table WIDTH="600" height="40" frame="hsides" BORDER="2" BORDERCOLOR="#004fcd" align="right" cellpadding="0" cellspacing="2" id="TABLE1">
<tr><!--class="GlbDefault"-->
<td width="70" bgcolor="#000094" bordercolor="black" align="middle"><A href="../index.html" style="TEXT-DECORATION: none">
<font color="white" size="3" face="sans-serif">
<b>Home</b></font></A></td></TD>
<td width="70" bgcolor="#000094" bordercolor="black" align="middle"><A href="../HowTo/index.html" style="TEXT-DECORATION: none"> <font color="white" size="3" face="sans-serif">
<b>How To</b></font></A></td><!--class="GlbActive"-->
<td width="70" bgcolor="#00bb00" bordercolor="black" align="middle"><A href="../OnLineDoc/index.html" style="TEXT-DECORATION: none"> <font color="white" size="3" face="sans-serif">
<b>Online Documentation</b></font></A></td><!--class="GlbDefault"-->
<td width="70" bgcolor="#000094" bordercolor="black" align="middle"><A href="../Support/index.html" style="TEXT-DECORATION: none"> <font color="white" size="3" face="sans-serif">
<b>Support</b></font></A></td>
<td width=70 bgcolor=#000094 bordercolor=black align=middle>
<A href="../Download/index.html" style="TEXT-DECORATION: none" >
<font color=white size=3
face=sans-serif>
<b>Download</b></font></A></td>
<td width="70" bgcolor="#000094" bordercolor="black" align="middle"><A href="../Order/index.html" style="TEXT-DECORATION: none"> <font color="white" size="3" face="sans-serif">
<b>Order</b></font></A></td> </tr>
</table>
<p> </p>
<p> </p>
<table width="100%">
<tr>
<td valign="top" width="165"><!--LeftMenu-->
<table frame="void" CELLSPACING="5" width="165">
<tr><td><p> </p></td>
</tr>
<tr>
<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Command.html" style="TEXT-DECORATION: none">
<font color="white" size="2" face="sans-serif">
SACommand</A> </FONT> </td>
</tr>
<tr>
<td><img align="middle" src="../images/red.gif" WIDTH="12" HEIGHT="12"><A href="Connection.html" style="TEXT-DECORATION: none">
<font color="white" size="2" face="sans-serif">
SAConnection</A> </FONT> </td>
</tr>
<tr>
<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Exception.html" style="TEXT-DECORATION: none">
<font color="white" size="2" face="sans-serif">
SAException</font></A> </td>
</tr>
<tr>
<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Field.html" style="TEXT-DECORATION: none">
<font color="white" size="2" face="sans-serif">
SAField</A> </FONT> </td>
</tr>
<tr>
<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Param.html" style="TEXT-DECORATION: none">
<font color="white" size="2" face="sans-serif">
SAParam</A> </FONT> </td>
</tr>
<tr><td><hr></td></tr>
<tr>
<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">
<A href="String.html" style ="TEXT-DECORATION: none" >
<font color=white size=2 face=sans-serif>
SAString</A> </FONT> </td>
</tr>
<tr>
<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">
<A href="DateTime.html" style ="TEXT-DECORATION: none" >
<font color=white size=2 face=sans-serif>
SADateTime</A> </FONT> </td>
</tr>
</table>
</td><!--empty column-->
<td width="20">
<p> </p>
</td><!--Content-->
<td valign="top" align="left">
<table width="100%" cellspacing="2" cellpadding="2">
<tr>
<td align="left"><A href="Connection_Usage.html" style="TEXT-DECORATION: none"><h3>Usage</h3></A>
</td>
<td align="left"><A href="Connection_Examples.html" style="TEXT-DECORATION: none"><h3>Examples</h3></A>
</td>
</tr>
<tr>
<td colspan="2"><h1>SAConnection</h1></td>
</tr>
</table>
<h3>Construction / Destruction</h3>
<table width="100%" cellspacing="2" cellpadding="10">
<tr>
<td width="30%" valign="top"><A href="Connection_cnstr.html">
<font face="Arial" size="3">
SAConnection</font></A></td>
<td> <font face="Arial" size="3">
Constructs a <b>SAConnection</b>
object</font></td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_dstr.html">
<font face="Arial" size="3">
~SAConnection</font></A></td>
<td> <font face="Arial" size="3">
Destructs a <b>SAConnection</b>
object</font></td>
</tr>
<tr><td colspan="2"><hr></td></tr>
</table>
<h3>Methods</h3>
<table width="100%" cellspacing="2" cellpadding="10">
<tr>
<td width="30%" valign="top"><A href="Connection_setClient.html">
<font face="Arial">
setClient </font></A></td>
<td><font face="Arial" size="3"> Sets an DBMS client to the current <A href="Connection.html">SAConnection</A>
object</font></td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_Client.html">
<font face="Arial">
Client </font></A></td>
<td><font face="Arial" size="3"> Gets the current DBMS client associated with the <A href="Connection.html">SAConnection</A>
object</font></td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_ClientVersion.html">
<font face="Arial">
ClientVersion </font></A></td>
<td><font face="Arial" size="3">
Gets the DBMS client API
version
number.</font></td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_ServerVersion.html">
<font face="Arial">
ServerVersion </font></A></td>
<td><font face="Arial" size="3">
Gets the DBMS server version
number.</font></td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_ServerVersionString.html">
<font face="Arial">
ServerVersionString </font></A></td>
<td><font face="Arial" size="3"><font face="Arial" size="3">
Gets the DBMS server version
string.</font>
</font></td>
</tr>
<tr><td colspan="2"><hr></td></tr>
<tr>
<td width="30%" valign="top"><A href="Connection_isConnected.html"><font face="Arial">
isConnected </font> </A></td>
<td> <font face="Arial">
Returns the connection state.
</font></td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_Connect.html"><font face="Arial">
Connect </font></A> </td>
<td><font face="Arial">
Connects to the
database.</font></td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_Disconnect.html"><font face="Arial">
Disconnect </font></A> </td>
<td><font face="Arial">
Disconnects the
connection. </font></td>
</tr>
<tr><td colspan="2"><hr></td></tr>
<tr>
<td width="30%" valign="top"><A href="Connection_setIsolationLevel.html"><font face="Arial">
setIsolationLevel </font></A> </td>
<td><font face="Arial">
Sets the transaction isolation level. </font> </td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_IsolationLevel.html"><font face="Arial">
IsolationLevel </font></A> </td>
<td><font face="Arial">
Gets the transaction isolation level.</font> </td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_setAutoCommit.html"><font face="Arial">
setAutoCommit </font></A> </td>
<td><font face="Arial">
Sets connection to be committed automatically. </font> </td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_AutoCommit.html"><font face="Arial">
AutoCommit </font></A> </td>
<td><font face="Arial">
Gets whether the connection is committed automatically. </font> </td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_Commit.html"><font face="Arial">
Commit </font></A> </td>
<td><font face="Arial">
Commits transactions. </font> </td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_Rollback.html"><font face="Arial">
Rollback </font></A> </td>
<td><font face="Arial">
Roll's back to last
commit </font> </td>
</tr>
<tr><td colspan="2"><hr></td></tr>
<tr>
<td width="30%" valign="top">
<A href="Connection_setOption.html"><font face="Arial">
setOption </font></A> </td>
<td><font face="Arial">
Sets a string value of a specific connection or command option</font></td>
</tr>
<tr>
<td width="30%" valign="top">
<A href="Connection_Option.html"><font face="Arial">
Option </font></A> </td>
<td><font face="Arial">
Gets a string value of a specific connection or command option</font></td>
</tr>
<tr><td colspan="2"><hr></td></tr>
<tr>
<td width="30%" valign="top"><A href="Connection_NativeAPI.html"><font face="Arial">
NativeAPI </font></A> </td>
<td><font face="Arial">
Gets native DBMS client API. </font> </td>
</tr>
<tr>
<td width="30%" valign="top"><A href="Connection_NativeHandles.html"><font face="Arial">
NativeHandles </font></A> </td>
<td><font face="Arial">
Gets
native
DBMS client connection related handle(s) </font> </td>
</tr>
</table>
</td>
<tr></tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -