File: gloss.html

package info (click to toggle)
unixodbc 2.2.11-16
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 17,332 kB
  • ctags: 12,399
  • sloc: ansic: 116,624; cpp: 29,333; sh: 25,024; makefile: 3,002; lex: 241; yacc: 182; perl: 142; sed: 16; sql: 1
file content (634 lines) | stat: -rwxr-xr-x 20,114 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Glossary </TITLE>
<LINK REL="StyleSheet" Href="odbc.css">
</HEAD>
<BODY bgcolor="white">

<table width="90%" cols="3" border="0" cellspacing="0">
<TR>
   <TD colspan="3" class="big">Index / Glossary</TD>
</TR>
<TR>
  <TD colspan="3">
   <TABLE Cols="13" width=90% bgcolor="black">
   <TR>
      <TH class="head"><a href="#A">A</A></TH>
      <TH CLASS="head"><a href="#B">B</A></TH>
      <TH CLASS="head"><a href="#C">C</A></TH>
      <TH CLASS="head"><a href="#D">D</A></TH>
      <TH CLASS="head"><a href="#E">E</A></TH>
      <TH CLASS="head"><a href="#F">F</A></TH>
      <TH CLASS="head"><a href="#G">G</A></TH>
      <TH CLASS="head"><a href="#H">H</A></TH>
      <TH CLASS="head"><a href="#I">I</A></TH>
      <TH CLASS="head"><a href="#J">J</A></TH>
      <TH CLASS="head"><a href="#K">K</A></TH>
      <TH CLASS="head"><a href="#L">L</A></TH>
      <TH CLASS="head"><a href="#M">M</A></TH>
   </TR>
   <TR>
      <TH CLASS="head"><a href="#N">N</A></TH>
      <TH CLASS="head"><a href="#O">O</A></TH>
      <TH CLASS="head"><a href="#P">P</A></TH>
      <TH CLASS="head"><a href="#Q">Q</A></TH>
      <TH CLASS="head"><a href="#R">R</A></TH>
      <TH CLASS="head"><a href="#S">S</A></TH>
      <TH CLASS="head"><a href="#T">T</A></TH>
      <TH CLASS="head"><a href="#U">U</A></TH>
      <TH CLASS="head"><a href="#V">V</A></TH>
      <TH CLASS="head"><a href="#W">W</A></TH>
      <TH CLASS="head"><a href="#X">X</A></TH>
      <TH CLASS="head"><a href="#Y">Y</A></TH>
      <TH CLASS="head"><a href="#Z">Z</A></TH>
   </TR>
   </TABLE>
  </TD>
</TR>
</TABLE>
<table width="90%" cols="3" border="0" cellspacing="0">

<TR>
  <TD class="head" width="60"><a name="C"><B>C</B></A></TD>
  <TD width="20" class="head">&nbsp</TD>
  <TD class="head"><A Name="col">Column</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD><P>A column is another name for field in a SQL table.
	It has a data type (Integer, Char, Money etc) and a name by which it is 
	addressed.</P>
	<P>You specify the name of a column in a query (either DELETE, UPDATE, SELECT or
	INSERT)</P>
	</TD>
</TR>
<TR>
  <TD class="head" width="60"><a name="D"><B>D</B></A></TD>
  <TD width="20" class="head">&nbsp</TD>
  <TD class="head"><A Name="dsrc">data source</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD>A data source defines all informationen needed by ODBC to connect to a
	database. This includes the name of the driver to use (Postgres, mySQL etc.),
	the name of the user, his password, the server name on which the database resides 
	and of course the name of the database. There are a lot more options available.
	</TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD class="head"><A NAME="dtyp">Data Types</A></TD>
</TR>
<TR>
  <TD colspan="2">&nbsp;</TD>
  <TD><P>
  The following table show some ODBC data types and how the relate
  to standard C data types:</P>
  <TABLE COLS="3" border="0" cellspacing="1">
  <TR>
    <TH CLASS="head">Type identifier</TH>
    <TH CLASS="head">ODBC typedef</TH>
    <TH CLASS="head">C typedef</TH>
  </TR>
  <TR>
    <TD class="small">SQL_C_CHAR</TD>
    <TD class="small">SQLCHAR * </TD>
	<TD class="small">unsigned char * </TD>
  </TR>
  <TR>
    <TD class="small">SQL_C_SSHORT</TD>
    <TD class="small">SQLSMALLINT</TD>
	<TD class="small">short int </TD>
  </TR>
  <TR>
    <TD class="small">SQL_C_USHORT  </TD>
    <TD class="small">SQLUSMALLINT </TD>
    <TD class="small">unsigned short int </TD>
  </TR>
  <TR>
    <TD class="small">SQL_C_SLONG </TD>
    <TD class="small">SQLINTEGER</TD>
    <TD class="small">long int</TD>
  </TR>
  <TR>
    <TD class="small">SQL_C_FLOAT</TD>
    <TD class="small">SQLREAL</TD>
    <TD class="small">float </TD>
  </TR>
  <TR>
    <TD class="small">SQL_C_DOUBLE</TD>
    <TD class="small">SQLDOUBLE, SQLFLOAT</TD>
	<TD class="small">double </TD>
  </TR>
  <TR>
    <TD class="small">SQL_C_BINARY </TD>
    <TD class="small">SQLCHAR *</TD>
	<TD class="small">unsigned char </TD>
  </TR>
  <TR>
    <TD class="small">SQL_C_TYPE_DATE</TD>
    <TD class="small">SQL_DATE_STRUCT</TD>
	<TD class="small"> struct <BR>tagDATE_STRUCT {<BR>
     SQLSMALLINT year; <BR>
     SQLUSMALLINT month; <BR>
     SQLUSMALLINT day; <BR>
     } DATE_STRUCT; 
     </TD>
  </TR>
  <TR>
    <TD class="small">SQL_C_TYPE_TIME </TD>
    <TD class="small">SQL_TIME_STRUCT </TD>
	<TD class="small">struct<BR>tagTIME_STRUCT {<BR>
     SQLUSMALLINT hour; <BR>
     SQLUSMALLINT minute; <BR>
     SQLUSMALLINT second; <BR>
    } TIME_STRUCT;  
	</TD>
   </TR>
   </TABLE>
   <P>You will need the type identifier in calls to <A HREF="#bind">SQLBindCol</A>.
   </TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD >
  </TD>
</TR>
<TR>
  <TD class="head" width="60"><a name="O"><B>O</B></A></TD>
  <TD width="20" class="head">&nbsp</TD>
  <TD class="head"><A Name="oini">odbc.ini</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD><CODE>/etc/odbc.ini</CODE> is the configuration file for system
	    <A HREF="#dsrc">data sources</A>. It contains information which will be needed when
		connecting to a database. It is modified by a graphical utility
		ODBCConfig.
	</TD>
</TR>
<TR>
  <TD class="head" width="60"><a name="R"><B>R</B></A></TD>
  <TD width="20" class="head">&nbsp</TD>
  <TD class="head"><A Name="row">Row</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD>A row is a set of <A HREF="#col">columns</A> in a query. For example in our
	<A HREF="intro.html#tab">table</A> there are two users. Each user makes up a row
	in the table or in the result of our query.
	</TD>
</TR>
<TR>
  <TD class="head" width="60"><a name="S"><B>S</B></A></TD>
  <TD width="20" class="head">&nbsp</TD>
  <TD class="head"><A Name="alloc">SQLAllocHandle</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD>allocates needed handles.
      <CODE><PRE>
SQLRETURN 
SQLAllocHandle(SQLSMALLINT  HandleType,     
               SQLHANDLE    InputHandle, 
               SQLHANDLE   *OutputHandlePtr); 

	  </PRE></CODE>
	  <H4>Arguments</H4>

	  <h5>HandleType</h5>
	  <P>
      Defines the type of handle to be allocated by <CODE>SQLAllocHandle</CODE>. There are four
	  possible values:</P>
      <CODE>
	  SQL_HANDLE_ENV<BR>
	  SQL_HANDLE_DBC<BR>
      SQL_HANDLE_STMT<BR>
      SQL_HANDLE_DESC
      </CODE>
	  <H5>InputHandle</H5>
      This is the input handle in whose context the new handle will be allocated. 
	  If <CODE>HandleType</CODE> is <CODE>SQL_HANDLE_ENV</CODE>, this is <CODE>SQL_NULL_HANDLE</CODE>. For
	  a handle of type <CODE>SQL_HANDLE_DBC</CODE>, this has to be an environment handle, and 
	  if it is <CODE>SQL_HANDLE_STMT</CODE> or <CODE>SQL_HANDLE_DESC</CODE>, it must be a connection 
	  handle.

      <H5>OutputHandlePtr</H5>
      Pointer to a buffer in which to return the allocated handle.

      <H4>Returns</H4>

	  <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.
		<HR width="20%" align="center">
  </TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD class="head"><A NAME="bind">SQLBindCol</A></TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD >
   binds a variable to a column in the result.
<CODE><PRE>
SQLRETURN 
SQLBindCol(SQLHSTMT      StatementHandle, 
           SQLUSMALLINT  ColumnNumber, 
           SQLSMALLINT   TargetType,  
           SQLPOINTER    TargetValuePtr, 
           SQLINTEGER    BufferLength, 
           SQLINTEGER   *StrLen_or_IndPtr); 
</PRE></CODE>

   <H4>Arguments</H4>
   <H5>StatementHandle</H5>
   <CODE>StatementHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
   and will hold all information and the result set of the statement.

   <H5>ColumnNumber</H5>
   Number of the column in the result set. Starts with 1.
   
   <H5>TargetType</H5>
   Type identifier of the <A href="#dtyp">data type</A>

   <H5>TargetValuePtr</H5>
   The pointer to the variable in which the data will be stored.

   <H5>BufferLength</H5>
   The size of the buffer <CODE>TargetValuePtr</CODE> points at in bytes.

   <H5>StrLen_or_IndPtr</H5>
   When data is fetched, returns either
   <UL>
   <LI>The length of the data available to return
   <LI>SQL_NO_TOTAL
   <LI>SQL_NULL_DATA 
   </UL>

   <H4>Returns</H4>

   <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
	<HR align="center" width="20%">
</TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD class="head"><A NAME="conn">SQLConnect</A></TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD >
   connects to a datasource
<CODE><PRE>
SQLRETURN SQLConnect(SQLHDBC     ConnectionHandle, 
                     SQLCHAR    *ServerName, 
                     SQLSMALLINT NameLength1, 
                     SQLCHAR    *UserName, 
                     SQLSMALLINT NameLength2, 
                     SQLCHAR    *Authentication, 
                     SQLSMALLINT NameLength3); 
</PRE></CODE>

   <H4>Arguments</H4>
   <H5>ConnectionHandle</H5>
   <CODE>ConnectionHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
   and will hold all information about the connection.

   <H5>ServerName</H5>
   Name of the database server
   
   <H5>NameLength1</H5>
   The length of <CODE>ServerName</CODE> or <CODE>SQL_NTS</CODE>

   <H5>UserName</H5>
   The name of the user who connects to the database.

   <H5>NameLength2</H5>
   The length of <CODE>UserName</CODE> or <CODE>SQL_NTS</CODE>
   <H5>Authentication</H5>
   Password of the user

   <H5>NameLength3</H5>
   The length of <CODE>Authentication</CODE> or <CODE>SQL_NTS</CODE>

   <H4>Returns</H4>

   <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
	<HR align="center" width="20%">
</TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD class="head"><A NAME="dsn">SQLDataSources</A></TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD >
   fetches avaible datasource names either user, system or both.
<CODE><PRE>
SQLRETURN 
SQLDataSources(SQLHENV      EnvironmentHandle, 
               SQLUSMALLINT Direction, 
               SQLCHAR     *ServerName, 
               SQLSMALLINT  BufferLength1, 
               SQLSMALLINT *NameLength1Ptr, 
               SQLCHAR     *Description, 
               SQLSMALLINT  BufferLength2, 
               SQLSMALLINT *NameLength2Ptr); 
</PRE></CODE>

   <H4>Arguments</H4>
   <H5>EnvironmentHandle</H5>
   <CODE>EnvironmentHandle</CODE> must have been allocated by       <CODE>SQLAllocHandle</CODE>.

   <H5>Direction</H5>
   Which DSN we are looking for. May be on of:
     <TABLE COLS="2" border="0">
     <TR>
       <TD valign="top"><CODE>SQL_FETCH_FIRST</CODE></TD>
       <TD>Sets up <CODE>SQLDataSources()</CODE> to lookup the first of all
           available datasources (either user or systemwide).
     </TR>
     <TR>
       <TD valign="top"><CODE>SQL_FETCH_FIRST_USER</CODE></TD>
       <TD>Sets up <CODE>SQLDataSources()</CODE> to lookup the first of the
           available user datasources.
     </TR>
     <TR>
       <TD valign="top"><CODE>SQL_FETCH_FIRST_SYSTEM</CODE></TD>
       <TD>Sets up <CODE>SQLDataSources()</CODE> to lookup the first of the
           available system datasources.
     </TR>
     <TR>
       <TD valign="top"><CODE>SQL_FETCH_NEXT</CODE></TD>
       <TD>Fetches the next datasource.
           Depending on <CODE>SQL_FETCH_FIRST_USER</CODE>, <CODE>SQL_FETCH_FIRST_SYSTEM</CODE>
           or <CODE>SQL_FETCH_FIRST</CODE> this may only be a user datasource, 
           only a system datasource or one of either.
     </TR>
     </TABLE>

   <H5>ServerName</H5>
   The name of the datasource is returned herein.

   <H5>BufferLength1</H5>
   Defines how many chars <I>Servername</I> may contain at most.

   <H5>NameLength1Ptr</H5>
   The pointer to the variable in which the actual length of the datasource name
   is stored. If <I>NameLength1Ptr</I> is greater than <I>BufferLength1</I>, then
   the DSN in <I>ServerName</I> is truncated to fit.

   <H5>BufferLength</H5>
   The size of the buffer <CODE>TargetValuePtr</CODE> points at in bytes.

   <H5>Description</H5>
   The description supplied with the datasource, giving more information on the
   datasource in human readable form.

   <H5>BufferLength2</H5>
   Defines how many chars <I>Description</I> may contain at most.

   <H5>NameLength2Ptr</H5>
   The pointer to the variable in which the actual length of the description
   is stored. If <I>NameLength2Ptr</I> is greater than <I>BufferLength2</I>, then
   the description in <I>Description</I> is truncated to fit.
 
   <H4>Returns</H4>

   <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE>,    <CODE>SQL_NO_DATA></CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
	<HR align="center" width="20%">
</TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD class="head"><A NAME="exec">SQLExecDirect</A></TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD >
   Executes a SQL statement
<CODE><PRE>
SQLRETURN SQLExecDirect(SQLHSTMT    StatementHandle, 
                        SQLCHAR    *StatementText, 
                        SQLINTEGER  TextLength); 
</PRE></CODE>
   <H4>Arguments</H4>
   <H5>StatementHandle</H5>
   <CODE>StatementHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
   and will hold all information and the result set of the statement.

   <H5>StatementText</H5>
   The SQL statement to be executed
   
   <H5>TextLength</H5>
   The length of <CODE>StatementText</CODE> or <CODE>SQL_NTS</CODE>

   <H4>Returns</H4>

   <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
	<HR align="center" width="20%">
</TD>
</TR>
<TR>
  <TD width="20" colspan="2">&nbsp</TD>
  <TD class="head"><A Name="clos">SQLDisconnect</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD>disconnects the specified connection
      <CODE><PRE>
SQLRETURN SQLDisconnect(SQLHDBC     ConnectionHandle);

	  </PRE></CODE>
	  <H4>Arguments</H4>

	  <H5>ConnectionHandle</H5>
      The handle of the connection to be closed.


      <H4>Returns</H4>

	  <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.
		<HR width="20%" align="center">
  </TD>
</TR>
<TR>
  <TD width="20" colspan="2">&nbsp</TD>
  <TD class="head"><A Name="fetc">SQLFetch</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD>Fetches the next row of the result set.
      <CODE><PRE>
SQLRETURN SQLFetch(SQLHDBC     StatementHandle);

	  </PRE></CODE>
	  <H4>Arguments</H4>

	  <H5>StatementHandle</H5>
      The handle of the statement to be closed fromwhich the data should 
	  be fetched.

      <H4>Returns</H4>

	  <P><CODE>SQL_SUCCESS, SQL_NO_DATA, SQL_STILL_EXECUTING, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.</P>
		<HR width="20%" align="center">
  </TD>
</TR>
<TR>
  <TD width="20" colspan="2">&nbsp</TD>
  <TD class="head"><A Name="free">SQLFreeHandle</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD> frees allocated handles.
      <CODE><PRE>
SQLRETURN SQLFreeHandle(SQLSMALLINT  HandleType,     
                        SQLHANDLE    InputHandle);

	  </PRE></CODE>
	  <H4>Arguments</H4>

	  <h5>HandleType</h5>
	  <P>
      Defines the type of handle to be freed. There are four
	  possible values:</P>
      <CODE>
	  SQL_HANDLE_ENV<BR>
	  SQL_HANDLE_DBC<BR>
      SQL_HANDLE_STMT<BR>
      SQL_HANDLE_DESC
      </CODE>
	  <H5>InputHandle</H5>
      The handle to be freed. Should match the type stated by <CODE>HandleType</CODE>


      <H4>Returns</H4>

	  <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.
		<HR width="20%" align="center">
  </TD>
</TR>
<TR>
  <TD width="20" colspan="2">&nbsp</TD>
  <TD class="head"><A Name="ccol">SQLNumResultCols</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD>returns the number of columns in the result set.
      <CODE><PRE>
SQLRETURN SQLNumResultCols(SQLHSTMT     StatementHandle, 
                           SQLSMALLINT *ColumnCountPtr); 
	  </PRE></CODE>
	  <H4>Arguments</H4>

      <H5>StatementHandle</H5>
      <CODE>StatementHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
      and holds all information and the result set of the statement.
	  <h5>ColumnCountPtr</H5>
	  A pointer to a variable to hold the result value.
      <H4>Returns</H4>

	  <P><CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.</P>
		<HR width="20%" align="center">
  </TD>
</TR>
<TR>
  <TD width="20" colspan="2">&nbsp</TD>
  <TD class="head"><A Name="crow">SQLRowCount</A></TD>
</TR>
<TR><TD Colspan="2">&nbsp;</TD>
    <TD>returns the number of rows affected by INSERT, UPDATE or DELETE. 
	    Many drivers (but not all) return the number of rows returned by the
		last executed SELECT statement too.
      <CODE><PRE>
SQLRETURN SQLSQLRowCount(SQLHSTMT     StatementHandle, 
                         SQLSMALLINT *RowCountPtr); 
	  </PRE></CODE>
	  <H4>Arguments</H4>

      <H5>StatementHandle</H5>
      <CODE>StatementHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
      and holds all information and the result set of the statement.
	  <h5>RowCountPtr</H5>
	  A pointer to a variable to hold the result value.
      <H4>Returns</H4>

	  <P><CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.</P>
		<HR width="20%" align="center">
  </TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD class="head"><A NAME="conattr">SQLSetConnectAttr</A></TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD >
   modifies attributes of connections.
<CODE><PRE>
SQLRETURN SQLSetConnectAttr(SQLHDBC    ConnectionHandle, 
                            SQLINTEGER Attribute, 
                            SQLPOINTER ValuePtr, 
                            SQLINTEGER StringLength); 
</PRE></CODE>

   <H4>Arguments</H4>
   <H5>ConnectionHandle</H5>
   <CODE>ConnectionHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
   and defines the connection which will be modified.

   <H5>Attribute</H5>
   which attribute to set

   <H5>ValuePtr</H5>
   Pointer to the value for <CODE>Attribute</CODE>. Depending on 
   <CODE>Attribute</CODE>, <CODE>ValuePtr</CODE> will be a 32-bit integer 
   value or a pointer to a null-terminated string.

   <H5>StringLength</H5>
   If <CODE>ValuePtr</CODE> points to a character string or a binary buffer, this 
   argument should be the length of <CODE>*ValuePtr</CODE>.
   Otherwise, for <CODE>ValuePtr</CODE> of type integer <CODE>StringLength</CODE> is ignored.

   <H4>Returns</H4>

   <P><CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.</P>
	<HR align="center" width="20%">
</TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD class="head"><A NAME="envattr">SQLSetEnvAttr</A></TD>
</TR>
<TR>
  <TD colspan="2">&nbsp</TD>
  <TD >
   sets attributes of environments.
<CODE><PRE>
SQLRETURN  SQLSetEnvAttr(SQLHENV    EnvironmentHandle, 
                         SQLINTEGER Attribute, 
                         SQLPOINTER ValuePtr, 
                         SQLINTEGER StringLength); 
</PRE></CODE>

   <H4>Arguments</H4>
   <H5>EnvironmentHandle</H5>
   <CODE>EnvironmentHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>

   <H5>Attribute</H5>
   which attribute to set

   <H5>ValuePtr</H5>
   Pointer to the value for <CODE>Attribute</CODE>. Depending on 
   <CODE>Attribute</CODE>, <CODE>ValuePtr</CODE> will be a 32-bit integer 
   value or a pointer to a null-terminated string.

   <H5>StringLength</H5>
   If <CODE>ValuePtr</CODE> points to a character string or a binary buffer, this 
   argument should be the length of <CODE>*ValuePtr</CODE>.
   Otherwise, for <CODE>ValuePtr</CODE> of type integer <CODE>StringLength</CODE> is ignored.

   <H4>Returns</H4>

   <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
   <HR width="20%" align="center">
</TD>
</TR>
</TABLE>
</BODY>
</HTML>