<docbook><section><title>FileUserSystemDSNDifferentiation</title><title> What are the differences between User DSNs and System DSNs? What about Machine DSNs and File DSNs? </title> What are the differences between User DSNs and System DSNs? What about Machine DSNs and File DSNs? 
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> User vs System </bridgehead>
<para>User and System DSNs are so named because of their accessibility.
 System DSNs are recommended for most purposes.</para><para>User and System DSNs may each be either File or Machine DSNs.</para><para><emphasis>User DSN</emphasis> - A User DSN is only available for use by the user who created it.</para><para><emphasis>System DSN</emphasis> - A System DSN is available for use by any user.</para><bridgehead class="http://www.w3.org/1999/xhtml:h2"> Machine vs File </bridgehead>
<para>Machine and File DSNs are so named because of their storage locations and management methods.
 Machine DSNs are recommended for most purposes.</para><para>File and Machine DSNs may each be either User or System DSNs.</para><para><emphasis>Machine DSN</emphasis> - A Machine DSN is saved to a repository file (or files) determined by the environment&#39;s ODBC driver manager.</para><para><emphasis>File DSN</emphasis> - A File DSN is a set of DSN connection attributes that is saved to a standalone text file named by the DSN with a <computeroutput>.DSN</computeroutput> extension (e.g., for a DSN &quot;<computeroutput>my_dsn</computeroutput>&quot;, the filename would typically be &quot;<computeroutput>my_dsn.dsn</computeroutput>)&quot;.</para><para> </para><bridgehead class="http://www.w3.org/1999/xhtml:h2"> Typical Storage Locations </bridgehead>
<emphasis>Note:</emphasis> The following locations are defaults, but are not the only places that these DSNs or files may be found.
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> Mac OS X </bridgehead>

<table><title /><tgroup><thead /><tbody>
<row><entry>               </entry><entry>   <emphasis>Machine DSNs</emphasis>   </entry><entry>   <emphasis>File DSNs</emphasis>   </entry></row>
<row><entry>   <emphasis>System DSNs</emphasis>   </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki/Library/ODBC/odbc.ini</span>  <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki$ODBCINI</span>  <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki/etc/odbc.ini</span>  </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki/Library/ODBC/ODBCDataSources/</span>  </entry></row>
<row><entry>   <emphasis>User DSNs</emphasis>   </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki/Users/*/Library/ODBC/odbc.ini</span>  <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki/Users/*/.odbc.ini</span>          </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki/Users/*/Library/ODBC/ODBCDataSources/</span>  </entry></row>
</tbody></tgroup></table>
<para> </para><bridgehead class="http://www.w3.org/1999/xhtml:h3"> Unix-like OS (AIX, HP-UX, Linux, Solaris, etc.) </bridgehead>

<table><title /><tgroup><thead /><tbody>
<row><entry>               </entry><entry>   <emphasis>Machine DSNs</emphasis>   </entry><entry>   <emphasis>File DSNs</emphasis>   </entry></row>
<row><entry>   <emphasis>System DSNs</emphasis>   </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki$ODBCINI</span>  <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki/etc/odbc.ini</span>  </entry><entry>   </entry></row>
<row><entry>   <emphasis>User DSNs</emphasis>   </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowiki~/.odbc.ini</span>          </entry><entry>   </entry></row>
</tbody></tgroup></table>
<para> </para><bridgehead class="http://www.w3.org/1999/xhtml:h3"> Windows </bridgehead>

<table><title /><tgroup><thead /><tbody>
<row><entry>               </entry><entry>   <emphasis>Machine DSNs</emphasis>   </entry><entry>   <emphasis>File DSNs</emphasis>   </entry></row>
<row><entry>   <emphasis>System DSNs</emphasis>   </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowikiHKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI</span>   </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowikiC:\Program Files\Common Files\ODBC\Data Sources\</span>   </entry></row>
<row><entry>   <emphasis>User DSNs</emphasis>   </entry><entry> <span style="color: red">
      UNKNOWN tag:
      http://www.w3.org/1999/xhtml:nowikiHKEY_CURRENT_USER\Software\ODBC\ODBC.INI</span>           </entry><entry>   </entry></row>
</tbody></tgroup></table>
<para> </para></section></docbook>