Files
help/helpcontent2/source/text/shared/explorer/database/11020000.xhp
2004-08-18 09:59:46 +00:00

118 lines
10 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc..
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************-->
<helpdocument version="1.0">
<meta>
<topic id="textsharedexplorerdatabase11020000xml" indexer="include" status="PUBLISH">
<title xml-lang="en-US" id="tit">ODBC</title>
<filename>/text/shared/explorer/database/11020000.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
<lastedited date="2003-10-31T00:00:00">converted from old format - fpe</lastedited>
</history>
</meta>
<body>
<section id="odbc">
<bookmark branch="index" xml-lang="en-US" id="bm_id3149031"><bookmark_value>ODBC;database</bookmark_value><bookmark_value>databases;ODBC</bookmark_value></bookmark><paragraph id="hd_id3149031" role="heading" level="1" oldref="1" l10n="U" xml-lang="en-US"><link href="text/shared/explorer/database/11020000.xhp" name="ODBC">ODBC</link></paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3150499" xml-lang="en-US" oldref="2"><ahelp visibility="visible" hid="">Specifies the settings for <link href="text/shared/00/00000005.xhp#odbc" name="ODBC">ODBC</link> databases. This includes your user access data, driver settings, and font definitions.</ahelp></paragraph>
</section>
<paragraph role="paragraph" id="par_id3153049" l10n="U" xml-lang="en-US" oldref="35">Before you can edit or add record to a database table in $[officename], the table must have a unique index.</paragraph>
<paragraph role="paragraph" id="par_id3154751" l10n="E" xml-lang="en-US" oldref="" localize="false"><link href="text/shared/00/00000450.xhp#odbc" name=""><embedvar href="text/shared/00/00000004.xhp#wie"/></link></paragraph>
<paragraph role="paragraph" id="par_id3149828" l10n="U" xml-lang="en-US" oldref="20">On Solaris and Linux platforms, try to use a JDBC driver instead of an ODBC driver. See http://www.unixodbc.org for an ODBC implementation on Solaris or Linux.</paragraph>
<paragraph role="paragraph" id="par_id3143267" l10n="U" xml-lang="en-US" oldref="21">To connect to a Microsoft Access database, use the ADO database interface, rather than ODBC.</paragraph>
<paragraph role="note" id="par_id3145315" l10n="U" xml-lang="en-US" oldref="14">Drivers for ODBC are supplied and supported by the manufacturer of the database. $[officename] only supports the ODBC 3 standard.</paragraph>
<section id="benutzername">
<paragraph role="heading" level="2" id="hd_id3148642" l10n="U" xml-lang="en-US" oldref="4">User Name</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3154514" xml-lang="en-US" oldref="5"><ahelp hid="" visibility="visible">Type the user name for accessing the database.</ahelp></paragraph>
</section>
<section id="passwort">
<paragraph role="heading" level="2" id="hd_id3153665" l10n="U" xml-lang="en-US" oldref="6">Password required</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3145119" xml-lang="en-US" oldref="7"><ahelp hid="" visibility="visible">Prevents an unauthorized user from accessing the database. You only need to enter the password once per session.</ahelp></paragraph>
</section>
<section id="treibereinstellungen">
<bookmark branch="hid/HID_DSADMIN_ODBC_OPTIONS" xml-lang="en-US" id="bm_id3148473"/><paragraph role="heading" level="2" id="hd_id3153087" l10n="U" xml-lang="en-US" oldref="10">Driver Settings</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3143271" xml-lang="en-US" oldref="11"><ahelp hid="HID_DSADMIN_ODBC_OPTIONS" visibility="visible">Use this text field to enter additional optional driver settings if this is necessary.</ahelp></paragraph>
</section>
<section id="zeichensatz">
<bookmark branch="hid/HID_DSADMIN_CHARSET_ODBC" xml-lang="en-US" id="bm_id3144511"/><paragraph role="heading" level="2" id="hd_id3152472" l10n="U" xml-lang="en-US" oldref="12">Character Set</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3151245" xml-lang="en-US" oldref="13"><ahelp hid="HID_DSADMIN_CHARSET_ODBC" visibility="visible">Select the code conversion that you want to use to view the database in $[officename]. This does not affect the database.</ahelp> Choose "System" to use the default character set of your operating system. Text and dBase databases are restricted to character sets with a fixed-size character length, where all characters are encoded with the same number of bytes.</paragraph>
</section>
<section id="retrieve">
<paragraph role="heading" level="2" id="hd_id3149669" l10n="U" xml-lang="en-US" oldref="22">General</paragraph>
<bookmark branch="hid/HID_DSADMIN_AUTORETRIEVEENABLED" xml-lang="en-US" id="bm_id3161657"/><paragraph role="heading" level="3" id="hd_id3147265" l10n="U" xml-lang="en-US" oldref="24">Retrieve generated values</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3151054" xml-lang="en-US" oldref="25"><ahelp hid="HID_DSADMIN_AUTORETRIEVEENABLED" visibility="visible">Enables $[officename] support of auto-incremented data fields for the current ODBC or JDBC data source.</ahelp> Select this check box if the database does not support the auto-increment feature in its SDBCX layer. In general, the auto-increment is selected for the primary key field.</paragraph>
<bookmark branch="hid/HID_DSADMIN_AUTOINCREMENTVALUE" xml-lang="en-US" id="bm_id3150792"/><paragraph role="heading" level="3" id="hd_id3150400" l10n="U" xml-lang="en-US" oldref="26">Auto-increment statement</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3154366" xml-lang="en-US" oldref="27"><ahelp hid="HID_DSADMIN_AUTOINCREMENTVALUE" visibility="visible">Enter the SQL command specifier that instructs the data source to auto-increment a specified Integer data field.</ahelp> For example, a typical SQL statement to create a data field is: </paragraph>
<paragraph role="paragraph" id="par_id3159149" l10n="U" xml-lang="en-US" oldref="28">CREATE TABLE "table1" ("id" INTEGER)</paragraph>
<paragraph role="paragraph" id="par_id3147084" l10n="U" xml-lang="en-US" oldref="29">To auto-increment the "id" data field in a MySQL database, change the statement to:</paragraph>
<paragraph role="paragraph" id="par_id3154909" l10n="U" xml-lang="en-US" oldref="30">CREATE TABLE "table1" ("id" INTEGER AUTO_INCREMENT)</paragraph>
<paragraph xml-lang="en-US" role="paragraph" id="par_id3152933" l10n="U" oldref="31">In other words, enter AUTO_INCREMENT into <emph>Auto-increment statemen</emph>t box.</paragraph>
<bookmark branch="hid/HID_DSADMIN_RETRIEVE_AUTO" xml-lang="en-US" id="bm_id3153195"/><paragraph role="heading" level="3" id="hd_id3149765" l10n="U" xml-lang="en-US" oldref="32">Query of generated values</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3145171" xml-lang="en-US" oldref="33"><ahelp hid="HID_DSADMIN_RETRIEVE_AUTO" visibility="visible">Enter an SQL statement that returns the last auto-incremented value for the primary key data field.</ahelp> For example:</paragraph>
<paragraph role="paragraph" id="par_id3150769" l10n="U" xml-lang="en-US" oldref="34">SELECT LAST_INSERT_D();</paragraph>
</section>
<section id="sql92">
<bookmark branch="hid/HID_DSADMIN_SQL92CHECK" xml-lang="en-US" id="bm_id3147289"/><paragraph role="heading" level="3" id="hd_id3157892" l10n="U" xml-lang="en-US" oldref="18">Use SQL92 naming constraints</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3153368" xml-lang="en-US" oldref="19"><ahelp hid="HID_DSADMIN_SQL92CHECK" visibility="visible">Only allows names that use characters that conform to the SQL92 naming constraints in the data source. All other characters are rejected.</ahelp> Each name must begin with a lower or upper case letter, or an underline ( _ ). The remaining characters can be ASCII letters, underlines, and numbers.</paragraph>
</section>
<bookmark branch="hid/HID_DSADMIN_USECATALOG" xml-lang="en-US" id="bm_id3146148"/><paragraph role="heading" level="3" id="hd_id3154011" l10n="U" xml-lang="en-US" oldref="15">Use Catalog for file-based databases</paragraph>
<paragraph l10n="U" role="paragraph" id="par_id3148618" xml-lang="en-US" oldref="16"><ahelp hid="HID_DSADMIN_USECATALOG" visibility="visible">Uses the current data source of the Catalog. This is useful when the ODBC data source is a database server. If the ODBC data source is a dBase driver, leave this check box clear.</ahelp></paragraph>
</body>
</helpdocument>