| Name | Size | Mode | Actions |
|---|---|---|---|
| close.html | 1476 | 0644 | editdlrm |
| conne.html | 5034 | 0644 | editdlrm |
| dsn.html | 2652 | 0644 | editdlrm |
| gloss.html | 20114 | 0644 | editdlrm |
| index.html | 277 | 0644 | editdlrm |
| intro.html | 2374 | 0644 | editdlrm |
| navi.html | 1023 | 0644 | editdlrm |
| odbc.css | 6801 | 0755 | editdlrm |
| query.html | 3600 | 0644 | editdlrm |
| resul.html | 6956 | 0644 | editdlrm |
/usr/share/doc/unixODBC/doc/ProgrammerManual/Tutorial/dsn.html (2652B)
| Obtaining a Datasourcename | ||||||||||
A simple query should be a nobrainer right now. But what if your programm runs on a system where you can't be sure which datasource names are configured? Then you should use As ODBC knows systemwide and userwide datasources, you need to give a direction which datasource types you are looking for. There you may specify either of the following values:
So let's have a look on a small function, which will return all available datasource names. You may insert this code into the program which you built before and call it somewhere after you've obtained an environment handle.
|
||||||||||