Debian Codegraph @

doc/ProgrammerManual/Tutorial/gloss.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <META NAME="GENERATOR" Content="Microsoft Developer Studio">
4 <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
5 <TITLE>Glossary </TITLE>
6 <LINK REL="StyleSheet" Href="odbc.css">
7 </HEAD>
8 <BODY bgcolor="white">
9
10 <table width="90%" cols="3" border="0" cellspacing="0">
11 <TR>
12 <TD colspan="3" class="big">Index / Glossary</TD>
13 </TR>
14 <TR>
15 <TD colspan="3">
16 <TABLE Cols="13" width=90% bgcolor="black">
17 <TR>
18 <TH class="head"><a href="#A">A</A></TH>
19 <TH CLASS="head"><a href="#B">B</A></TH>
20 <TH CLASS="head"><a href="#C">C</A></TH>
21 <TH CLASS="head"><a href="#D">D</A></TH>
22 <TH CLASS="head"><a href="#E">E</A></TH>
23 <TH CLASS="head"><a href="#F">F</A></TH>
24 <TH CLASS="head"><a href="#G">G</A></TH>
25 <TH CLASS="head"><a href="#H">H</A></TH>
26 <TH CLASS="head"><a href="#I">I</A></TH>
27 <TH CLASS="head"><a href="#J">J</A></TH>
28 <TH CLASS="head"><a href="#K">K</A></TH>
29 <TH CLASS="head"><a href="#L">L</A></TH>
30 <TH CLASS="head"><a href="#M">M</A></TH>
31 </TR>
32 <TR>
33 <TH CLASS="head"><a href="#N">N</A></TH>
34 <TH CLASS="head"><a href="#O">O</A></TH>
35 <TH CLASS="head"><a href="#P">P</A></TH>
36 <TH CLASS="head"><a href="#Q">Q</A></TH>
37 <TH CLASS="head"><a href="#R">R</A></TH>
38 <TH CLASS="head"><a href="#S">S</A></TH>
39 <TH CLASS="head"><a href="#T">T</A></TH>
40 <TH CLASS="head"><a href="#U">U</A></TH>
41 <TH CLASS="head"><a href="#V">V</A></TH>
42 <TH CLASS="head"><a href="#W">W</A></TH>
43 <TH CLASS="head"><a href="#X">X</A></TH>
44 <TH CLASS="head"><a href="#Y">Y</A></TH>
45 <TH CLASS="head"><a href="#Z">Z</A></TH>
46 </TR>
47 </TABLE>
48 </TD>
49 </TR>
50 </TABLE>
51 <table width="90%" cols="3" border="0" cellspacing="0">
52
53 <TR>
54 <TD class="head" width="60"><a name="C"><B>C</B></A></TD>
55 <TD width="20" class="head">&nbsp</TD>
56 <TD class="head"><A Name="col">Column</A></TD>
57 </TR>
58 <TR><TD Colspan="2">&nbsp;</TD>
59 <TD><P>A column is another name for field in a SQL table.
60 It has a data type (Integer, Char, Money etc) and a name by which it is
61 addressed.</P>
62 <P>You specify the name of a column in a query (either DELETE, UPDATE, SELECT or
63 INSERT)</P>
64 </TD>
65 </TR>
66 <TR>
67 <TD class="head" width="60"><a name="D"><B>D</B></A></TD>
68 <TD width="20" class="head">&nbsp</TD>
69 <TD class="head"><A Name="dsrc">data source</A></TD>
70 </TR>
71 <TR><TD Colspan="2">&nbsp;</TD>
72 <TD>A data source defines all informationen needed by ODBC to connect to a
73 database. This includes the name of the driver to use (Postgres, mySQL etc.),
74 the name of the user, his password, the server name on which the database resides
75 and of course the name of the database. There are a lot more options available.
76 </TD>
77 </TR>
78 <TR>
79 <TD colspan="2">&nbsp</TD>
80 <TD class="head"><A NAME="dtyp">Data Types</A></TD>
81 </TR>
82 <TR>
83 <TD colspan="2">&nbsp;</TD>
84 <TD><P>
85 The following table show some ODBC data types and how the relate
86 to standard C data types:</P>
87 <TABLE COLS="3" border="0" cellspacing="1">
88 <TR>
89 <TH CLASS="head">Type identifier</TH>
90 <TH CLASS="head">ODBC typedef</TH>
91 <TH CLASS="head">C typedef</TH>
92 </TR>
93 <TR>
94 <TD class="small">SQL_C_CHAR</TD>
95 <TD class="small">SQLCHAR * </TD>
96 <TD class="small">unsigned char * </TD>
97 </TR>
98 <TR>
99 <TD class="small">SQL_C_SSHORT</TD>
100 <TD class="small">SQLSMALLINT</TD>
101 <TD class="small">short int </TD>
102 </TR>
103 <TR>
104 <TD class="small">SQL_C_USHORT </TD>
105 <TD class="small">SQLUSMALLINT </TD>
106 <TD class="small">unsigned short int </TD>
107 </TR>
108 <TR>
109 <TD class="small">SQL_C_SLONG </TD>
110 <TD class="small">SQLINTEGER</TD>
111 <TD class="small">long int</TD>
112 </TR>
113 <TR>
114 <TD class="small">SQL_C_FLOAT</TD>
115 <TD class="small">SQLREAL</TD>
116 <TD class="small">float </TD>
117 </TR>
118 <TR>
119 <TD class="small">SQL_C_DOUBLE</TD>
120 <TD class="small">SQLDOUBLE, SQLFLOAT</TD>
121 <TD class="small">double </TD>
122 </TR>
123 <TR>
124 <TD class="small">SQL_C_BINARY </TD>
125 <TD class="small">SQLCHAR *</TD>
126 <TD class="small">unsigned char </TD>
127 </TR>
128 <TR>
129 <TD class="small">SQL_C_TYPE_DATE</TD>
130 <TD class="small">SQL_DATE_STRUCT</TD>
131 <TD class="small"> struct <BR>tagDATE_STRUCT {<BR>
132 SQLSMALLINT year; <BR>
133 SQLUSMALLINT month; <BR>
134 SQLUSMALLINT day; <BR>
135 } DATE_STRUCT;
136 </TD>
137 </TR>
138 <TR>
139 <TD class="small">SQL_C_TYPE_TIME </TD>
140 <TD class="small">SQL_TIME_STRUCT </TD>
141 <TD class="small">struct<BR>tagTIME_STRUCT {<BR>
142 SQLUSMALLINT hour; <BR>
143 SQLUSMALLINT minute; <BR>
144 SQLUSMALLINT second; <BR>
145 } TIME_STRUCT;
146 </TD>
147 </TR>
148 </TABLE>
149 <P>You will need the type identifier in calls to <A HREF="#bind">SQLBindCol</A>.
150 </TD>
151 </TR>
152 <TR>
153 <TD colspan="2">&nbsp</TD>
154 <TD >
155 </TD>
156 </TR>
157 <TR>
158 <TD class="head" width="60"><a name="O"><B>O</B></A></TD>
159 <TD width="20" class="head">&nbsp</TD>
160 <TD class="head"><A Name="oini">odbc.ini</A></TD>
161 </TR>
162 <TR><TD Colspan="2">&nbsp;</TD>
163 <TD><CODE>/etc/odbc.ini</CODE> is the configuration file for system
164 <A HREF="#dsrc">data sources</A>. It contains information which will be needed when
165 connecting to a database. It is modified by a graphical utility
166 ODBCConfig.
167 </TD>
168 </TR>
169 <TR>
170 <TD class="head" width="60"><a name="R"><B>R</B></A></TD>
171 <TD width="20" class="head">&nbsp</TD>
172 <TD class="head"><A Name="row">Row</A></TD>
173 </TR>
174 <TR><TD Colspan="2">&nbsp;</TD>
175 <TD>A row is a set of <A HREF="#col">columns</A> in a query. For example in our
176 <A HREF="intro.html#tab">table</A> there are two users. Each user makes up a row
177 in the table or in the result of our query.
178 </TD>
179 </TR>
180 <TR>
181 <TD class="head" width="60"><a name="S"><B>S</B></A></TD>
182 <TD width="20" class="head">&nbsp</TD>
183 <TD class="head"><A Name="alloc">SQLAllocHandle</A></TD>
184 </TR>
185 <TR><TD Colspan="2">&nbsp;</TD>
186 <TD>allocates needed handles.
187 <CODE><PRE>
188 SQLRETURN
189 SQLAllocHandle(SQLSMALLINT HandleType,
190 SQLHANDLE InputHandle,
191 SQLHANDLE *OutputHandlePtr);
192
193 </PRE></CODE>
194 <H4>Arguments</H4>
195
196 <h5>HandleType</h5>
197 <P>
198 Defines the type of handle to be allocated by <CODE>SQLAllocHandle</CODE>. There are four
199 possible values:</P>
200 <CODE>
201 SQL_HANDLE_ENV<BR>
202 SQL_HANDLE_DBC<BR>
203 SQL_HANDLE_STMT<BR>
204 SQL_HANDLE_DESC
205 </CODE>
206 <H5>InputHandle</H5>
207 This is the input handle in whose context the new handle will be allocated.
208 If <CODE>HandleType</CODE> is <CODE>SQL_HANDLE_ENV</CODE>, this is <CODE>SQL_NULL_HANDLE</CODE>. For
209 a handle of type <CODE>SQL_HANDLE_DBC</CODE>, this has to be an environment handle, and
210 if it is <CODE>SQL_HANDLE_STMT</CODE> or <CODE>SQL_HANDLE_DESC</CODE>, it must be a connection
211 handle.
212
213 <H5>OutputHandlePtr</H5>
214 Pointer to a buffer in which to return the allocated handle.
215
216 <H4>Returns</H4>
217
218 <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.
219 <HR width="20%" align="center">
220 </TD>
221 </TR>
222 <TR>
223 <TD colspan="2">&nbsp</TD>
224 <TD class="head"><A NAME="bind">SQLBindCol</A></TD>
225 </TR>
226 <TR>
227 <TD colspan="2">&nbsp</TD>
228 <TD >
229 binds a variable to a column in the result.
230 <CODE><PRE>
231 SQLRETURN
232 SQLBindCol(SQLHSTMT StatementHandle,
233 SQLUSMALLINT ColumnNumber,
234 SQLSMALLINT TargetType,
235 SQLPOINTER TargetValuePtr,
236 SQLINTEGER BufferLength,
237 SQLINTEGER *StrLen_or_IndPtr);
238 </PRE></CODE>
239
240 <H4>Arguments</H4>
241 <H5>StatementHandle</H5>
242 <CODE>StatementHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
243 and will hold all information and the result set of the statement.
244
245 <H5>ColumnNumber</H5>
246 Number of the column in the result set. Starts with 1.
247
248 <H5>TargetType</H5>
249 Type identifier of the <A href="#dtyp">data type</A>
250
251 <H5>TargetValuePtr</H5>
252 The pointer to the variable in which the data will be stored.
253
254 <H5>BufferLength</H5>
255 The size of the buffer <CODE>TargetValuePtr</CODE> points at in bytes.
256
257 <H5>StrLen_or_IndPtr</H5>
258 When data is fetched, returns either
259 <UL>
260 <LI>The length of the data available to return
261 <LI>SQL_NO_TOTAL
262 <LI>SQL_NULL_DATA
263 </UL>
264
265 <H4>Returns</H4>
266
267 <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
268 <HR align="center" width="20%">
269 </TD>
270 </TR>
271 <TR>
272 <TD colspan="2">&nbsp</TD>
273 <TD class="head"><A NAME="conn">SQLConnect</A></TD>
274 </TR>
275 <TR>
276 <TD colspan="2">&nbsp</TD>
277 <TD >
278 connects to a datasource
279 <CODE><PRE>
280 SQLRETURN SQLConnect(SQLHDBC ConnectionHandle,
281 SQLCHAR *ServerName,
282 SQLSMALLINT NameLength1,
283 SQLCHAR *UserName,
284 SQLSMALLINT NameLength2,
285 SQLCHAR *Authentication,
286 SQLSMALLINT NameLength3);
287 </PRE></CODE>
288
289 <H4>Arguments</H4>
290 <H5>ConnectionHandle</H5>
291 <CODE>ConnectionHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
292 and will hold all information about the connection.
293
294 <H5>ServerName</H5>
295 Name of the database server
296
297 <H5>NameLength1</H5>
298 The length of <CODE>ServerName</CODE> or <CODE>SQL_NTS</CODE>
299
300 <H5>UserName</H5>
301 The name of the user who connects to the database.
302
303 <H5>NameLength2</H5>
304 The length of <CODE>UserName</CODE> or <CODE>SQL_NTS</CODE>
305 <H5>Authentication</H5>
306 Password of the user
307
308 <H5>NameLength3</H5>
309 The length of <CODE>Authentication</CODE> or <CODE>SQL_NTS</CODE>
310
311 <H4>Returns</H4>
312
313 <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
314 <HR align="center" width="20%">
315 </TD>
316 </TR>
317 <TR>
318 <TD colspan="2">&nbsp</TD>
319 <TD class="head"><A NAME="dsn">SQLDataSources</A></TD>
320 </TR>
321 <TR>
322 <TD colspan="2">&nbsp</TD>
323 <TD >
324 fetches available datasource names either user, system or both.
325 <CODE><PRE>
326 SQLRETURN
327 SQLDataSources(SQLHENV EnvironmentHandle,
328 SQLUSMALLINT Direction,
329 SQLCHAR *ServerName,
330 SQLSMALLINT BufferLength1,
331 SQLSMALLINT *NameLength1Ptr,
332 SQLCHAR *Description,
333 SQLSMALLINT BufferLength2,
334 SQLSMALLINT *NameLength2Ptr);
335 </PRE></CODE>
336
337 <H4>Arguments</H4>
338 <H5>EnvironmentHandle</H5>
339 <CODE>EnvironmentHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>.
340
341 <H5>Direction</H5>
342 Which DSN we are looking for. May be on of:
343 <TABLE COLS="2" border="0">
344 <TR>
345 <TD valign="top"><CODE>SQL_FETCH_FIRST</CODE></TD>
346 <TD>Sets up <CODE>SQLDataSources()</CODE> to lookup the first of all
347 available datasources (either user or systemwide).
348 </TR>
349 <TR>
350 <TD valign="top"><CODE>SQL_FETCH_FIRST_USER</CODE></TD>
351 <TD>Sets up <CODE>SQLDataSources()</CODE> to lookup the first of the
352 available user datasources.
353 </TR>
354 <TR>
355 <TD valign="top"><CODE>SQL_FETCH_FIRST_SYSTEM</CODE></TD>
356 <TD>Sets up <CODE>SQLDataSources()</CODE> to lookup the first of the
357 available system datasources.
358 </TR>
359 <TR>
360 <TD valign="top"><CODE>SQL_FETCH_NEXT</CODE></TD>
361 <TD>Fetches the next datasource.
362 Depending on <CODE>SQL_FETCH_FIRST_USER</CODE>, <CODE>SQL_FETCH_FIRST_SYSTEM</CODE>
363 or <CODE>SQL_FETCH_FIRST</CODE> this may only be a user datasource,
364 only a system datasource or one of either.
365 </TR>
366 </TABLE>
367
368 <H5>ServerName</H5>
369 The name of the datasource is returned herein.
370
371 <H5>BufferLength1</H5>
372 Defines how many chars <I>Servername</I> may contain at most.
373
374 <H5>NameLength1Ptr</H5>
375 The pointer to the variable in which the actual length of the datasource name
376 is stored. If <I>NameLength1Ptr</I> is greater than <I>BufferLength1</I>, then
377 the DSN in <I>ServerName</I> is truncated to fit.
378
379 <H5>BufferLength</H5>
380 The size of the buffer <CODE>TargetValuePtr</CODE> points at in bytes.
381
382 <H5>Description</H5>
383 The description supplied with the datasource, giving more information on the
384 datasource in human readable form.
385
386 <H5>BufferLength2</H5>
387 Defines how many chars <I>Description</I> may contain at most.
388
389 <H5>NameLength2Ptr</H5>
390 The pointer to the variable in which the actual length of the description
391 is stored. If <I>NameLength2Ptr</I> is greater than <I>BufferLength2</I>, then
392 the description in <I>Description</I> is truncated to fit.
393
394 <H4>Returns</H4>
395
396 <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE>, <CODE>SQL_NO_DATA></CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
397 <HR align="center" width="20%">
398 </TD>
399 </TR>
400 <TR>
401 <TD colspan="2">&nbsp</TD>
402 <TD class="head"><A NAME="exec">SQLExecDirect</A></TD>
403 </TR>
404 <TR>
405 <TD colspan="2">&nbsp</TD>
406 <TD >
407 Executes a SQL statement
408 <CODE><PRE>
409 SQLRETURN SQLExecDirect(SQLHSTMT StatementHandle,
410 SQLCHAR *StatementText,
411 SQLINTEGER TextLength);
412 </PRE></CODE>
413 <H4>Arguments</H4>
414 <H5>StatementHandle</H5>
415 <CODE>StatementHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
416 and will hold all information and the result set of the statement.
417
418 <H5>StatementText</H5>
419 The SQL statement to be executed
420
421 <H5>TextLength</H5>
422 The length of <CODE>StatementText</CODE> or <CODE>SQL_NTS</CODE>
423
424 <H4>Returns</H4>
425
426 <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
427 <HR align="center" width="20%">
428 </TD>
429 </TR>
430 <TR>
431 <TD width="20" colspan="2">&nbsp</TD>
432 <TD class="head"><A Name="clos">SQLDisconnect</A></TD>
433 </TR>
434 <TR><TD Colspan="2">&nbsp;</TD>
435 <TD>disconnects the specified connection
436 <CODE><PRE>
437 SQLRETURN SQLDisconnect(SQLHDBC ConnectionHandle);
438
439 </PRE></CODE>
440 <H4>Arguments</H4>
441
442 <H5>ConnectionHandle</H5>
443 The handle of the connection to be closed.
444
445
446 <H4>Returns</H4>
447
448 <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.
449 <HR width="20%" align="center">
450 </TD>
451 </TR>
452 <TR>
453 <TD width="20" colspan="2">&nbsp</TD>
454 <TD class="head"><A Name="fetc">SQLFetch</A></TD>
455 </TR>
456 <TR><TD Colspan="2">&nbsp;</TD>
457 <TD>Fetches the next row of the result set.
458 <CODE><PRE>
459 SQLRETURN SQLFetch(SQLHDBC StatementHandle);
460
461 </PRE></CODE>
462 <H4>Arguments</H4>
463
464 <H5>StatementHandle</H5>
465 The handle of the statement to be closed fromwhich the data should
466 be fetched.
467
468 <H4>Returns</H4>
469
470 <P><CODE>SQL_SUCCESS, SQL_NO_DATA, SQL_STILL_EXECUTING, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.</P>
471 <HR width="20%" align="center">
472 </TD>
473 </TR>
474 <TR>
475 <TD width="20" colspan="2">&nbsp</TD>
476 <TD class="head"><A Name="free">SQLFreeHandle</A></TD>
477 </TR>
478 <TR><TD Colspan="2">&nbsp;</TD>
479 <TD> frees allocated handles.
480 <CODE><PRE>
481 SQLRETURN SQLFreeHandle(SQLSMALLINT HandleType,
482 SQLHANDLE InputHandle);
483
484 </PRE></CODE>
485 <H4>Arguments</H4>
486
487 <h5>HandleType</h5>
488 <P>
489 Defines the type of handle to be freed. There are four
490 possible values:</P>
491 <CODE>
492 SQL_HANDLE_ENV<BR>
493 SQL_HANDLE_DBC<BR>
494 SQL_HANDLE_STMT<BR>
495 SQL_HANDLE_DESC
496 </CODE>
497 <H5>InputHandle</H5>
498 The handle to be freed. Should match the type stated by <CODE>HandleType</CODE>
499
500
501 <H4>Returns</H4>
502
503 <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.
504 <HR width="20%" align="center">
505 </TD>
506 </TR>
507 <TR>
508 <TD width="20" colspan="2">&nbsp</TD>
509 <TD class="head"><A Name="ccol">SQLNumResultCols</A></TD>
510 </TR>
511 <TR><TD Colspan="2">&nbsp;</TD>
512 <TD>returns the number of columns in the result set.
513 <CODE><PRE>
514 SQLRETURN SQLNumResultCols(SQLHSTMT StatementHandle,
515 SQLSMALLINT *ColumnCountPtr);
516 </PRE></CODE>
517 <H4>Arguments</H4>
518
519 <H5>StatementHandle</H5>
520 <CODE>StatementHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
521 and holds all information and the result set of the statement.
522 <h5>ColumnCountPtr</H5>
523 A pointer to a variable to hold the result value.
524 <H4>Returns</H4>
525
526 <P><CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.</P>
527 <HR width="20%" align="center">
528 </TD>
529 </TR>
530 <TR>
531 <TD width="20" colspan="2">&nbsp</TD>
532 <TD class="head"><A Name="crow">SQLRowCount</A></TD>
533 </TR>
534 <TR><TD Colspan="2">&nbsp;</TD>
535 <TD>returns the number of rows affected by INSERT, UPDATE or DELETE.
536 Many drivers (but not all) return the number of rows returned by the
537 last executed SELECT statement too.
538 <CODE><PRE>
539 SQLRETURN SQLSQLRowCount(SQLHSTMT StatementHandle,
540 SQLSMALLINT *RowCountPtr);
541 </PRE></CODE>
542 <H4>Arguments</H4>
543
544 <H5>StatementHandle</H5>
545 <CODE>StatementHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
546 and holds all information and the result set of the statement.
547 <h5>RowCountPtr</H5>
548 A pointer to a variable to hold the result value.
549 <H4>Returns</H4>
550
551 <P><CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_INVALID_HANDLE,</CODE> or <CODE>SQL_ERROR</CODE>.</P>
552 <HR width="20%" align="center">
553 </TD>
554 </TR>
555 <TR>
556 <TD colspan="2">&nbsp</TD>
557 <TD class="head"><A NAME="conattr">SQLSetConnectAttr</A></TD>
558 </TR>
559 <TR>
560 <TD colspan="2">&nbsp</TD>
561 <TD >
562 modifies attributes of connections.
563 <CODE><PRE>
564 SQLRETURN SQLSetConnectAttr(SQLHDBC ConnectionHandle,
565 SQLINTEGER Attribute,
566 SQLPOINTER ValuePtr,
567 SQLINTEGER StringLength);
568 </PRE></CODE>
569
570 <H4>Arguments</H4>
571 <H5>ConnectionHandle</H5>
572 <CODE>ConnectionHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
573 and defines the connection which will be modified.
574
575 <H5>Attribute</H5>
576 which attribute to set
577
578 <H5>ValuePtr</H5>
579 Pointer to the value for <CODE>Attribute</CODE>. Depending on
580 <CODE>Attribute</CODE>, <CODE>ValuePtr</CODE> will be a 32-bit integer
581 value or a pointer to a null-terminated string.
582
583 <H5>StringLength</H5>
584 If <CODE>ValuePtr</CODE> points to a character string or a binary buffer, this
585 argument should be the length of <CODE>*ValuePtr</CODE>.
586 Otherwise, for <CODE>ValuePtr</CODE> of type integer <CODE>StringLength</CODE> is ignored.
587
588 <H4>Returns</H4>
589
590 <P><CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.</P>
591 <HR align="center" width="20%">
592 </TD>
593 </TR>
594 <TR>
595 <TD colspan="2">&nbsp</TD>
596 <TD class="head"><A NAME="envattr">SQLSetEnvAttr</A></TD>
597 </TR>
598 <TR>
599 <TD colspan="2">&nbsp</TD>
600 <TD >
601 sets attributes of environments.
602 <CODE><PRE>
603 SQLRETURN SQLSetEnvAttr(SQLHENV EnvironmentHandle,
604 SQLINTEGER Attribute,
605 SQLPOINTER ValuePtr,
606 SQLINTEGER StringLength);
607 </PRE></CODE>
608
609 <H4>Arguments</H4>
610 <H5>EnvironmentHandle</H5>
611 <CODE>EnvironmentHandle</CODE> must have been allocated by <CODE>SQLAllocHandle</CODE>
612
613 <H5>Attribute</H5>
614 which attribute to set
615
616 <H5>ValuePtr</H5>
617 Pointer to the value for <CODE>Attribute</CODE>. Depending on
618 <CODE>Attribute</CODE>, <CODE>ValuePtr</CODE> will be a 32-bit integer
619 value or a pointer to a null-terminated string.
620
621 <H5>StringLength</H5>
622 If <CODE>ValuePtr</CODE> points to a character string or a binary buffer, this
623 argument should be the length of <CODE>*ValuePtr</CODE>.
624 Otherwise, for <CODE>ValuePtr</CODE> of type integer <CODE>StringLength</CODE> is ignored.
625
626 <H4>Returns</H4>
627
628 <CODE>SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR</CODE> or <CODE>SQL_INVALID_HANDLE</CODE>.
629 <HR width="20%" align="center">
630 </TD>
631 </TR>
632 </TABLE>
633 </BODY>
634 </HTML>