document.write('<div class="cpp" style="font-family: monospace;"><br />');
document.write('<span style="color: #339900;">#define SQL_SUCCESS&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;0</span><br />');
document.write('<span style="color: #339900;">#define SQL_SUCCESS_WITH_INFO&nbsp; &nbsp;&nbsp; &nbsp;1</span><br />');
document.write('<span style="color: #339900;">#define SQL_NO_DATA&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;100</span><br />');
document.write('<span style="color: #339900;">#define SQL_ERROR&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;(-1)</span><br />');
document.write('<span style="color: #339900;">#define SQL_INVALID_HANDLE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (-2)</span><br />');
document.write('<span style="color: #339900;">#define SQL_STILL_EXECUTING&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;2</span><br />');
document.write('<span style="color: #339900;">#define SQL_NEED_DATA&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;99</span><br />');
document.write('<span style="color: #339900;">#define SQL_FETCH_NEXT&nbsp; &nbsp; &nbsp; &nbsp; 1</span><br />');
document.write('<span style="color: #339900;">#define SQL_FETCH_FIRST&nbsp;&nbsp;&nbsp;&nbsp;2</span><br />');
document.write('<br />');
document.write('<span style="color: #339900;">#define SQL_HANDLE_ENV&nbsp; &nbsp; &nbsp; &nbsp; 1</span><br />');
document.write('<span style="color: #339900;">#define SQL_HANDLE_DBC&nbsp; &nbsp; &nbsp; &nbsp; 2</span><br />');
document.write('<span style="color: #339900;">#define SQL_HANDLE_STMT&nbsp;&nbsp;&nbsp;&nbsp;3</span><br />');
document.write('<span style="color: #339900;">#define SQL_HANDLE_DESC&nbsp;&nbsp;&nbsp;&nbsp;4</span><br />');
document.write('<br />');
document.write('<span style="color: #000000;">&#91;</span><span style="color: #0000dd;">System</span>::<span style="color: #00eeff;">Runtime</span>::<span style="color: #00eeff;">InteropServices</span>::<span style="color: #00eeff;">DllImport</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;odbc32.dll&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br />');
document.write('<span style="color: #0000ff;">extern</span> <span style="color: #666666;">&quot;C&quot;</span> <span style="color: #0000ff;">short</span> _cdecl SQLAllocEnv<span style="color: #000000;">&#40;</span>int% EnvironmentHandle<span style="color: #000000;">&#41;</span>;<br />');
document.write('<br />');
document.write('<span style="color: #000000;">&#91;</span><span style="color: #0000dd;">System</span>::<span style="color: #00eeff;">Runtime</span>::<span style="color: #00eeff;">InteropServices</span>::<span style="color: #00eeff;">DllImport</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;odbc32.dll&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br />');
document.write('<span style="color: #0000ff;">extern</span> <span style="color: #666666;">&quot;C&quot;</span> <span style="color: #0000ff;">short</span> _cdecl SQLDataSources<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> EnvironmentHandle, <span style="color: #0000ff;">short</span> Direction,&nbsp; StringBuilder^ ServerName, <span style="color: #0000ff;">short</span> BufferLength1, short% NameLength1Ptr, StringBuilder^ Description, <span style="color: #0000ff;">short</span> BufferLength2, short% NameLength2Ptr<span style="color: #000000;">&#41;</span>;<br />');
document.write('<br />');
document.write('<span style="color: #000000;">&#91;</span><span style="color: #0000dd;">System</span>::<span style="color: #00eeff;">Runtime</span>::<span style="color: #00eeff;">InteropServices</span>::<span style="color: #00eeff;">DllImport</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;odbc32.dll&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br />');
document.write('<span style="color: #0000ff;">extern</span> <span style="color: #666666;">&quot;C&quot;</span> <span style="color: #0000ff;">short</span> _cdecl SQLFreeHandle<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">short</span> HandleType, <span style="color: #0000ff;">int</span> Handle<span style="color: #000000;">&#41;</span>;<br />');
document.write('&nbsp;</div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/948/1/" target="_blank">byteMyCode</a>.</div>');

