summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/shared/explorer/database/11000002.xhp
blob: d3af964c0e19daf8a43372fac2dc39130f87f7b4 (plain)
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
<?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="textsharedexplorerdatabase11000002xml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Data sources in $[officename]</title>
<filename>/text/shared/explorer/database/11000002.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
<lastedited date="2004-06-07T13:26:41">FPE: Removed mentioning of Adabas (#i10510#)</lastedited>
</history>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3155449"><bookmark_value>databases;drag and drop</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3151299" xml-lang="en-US" level="1" l10n="U" oldref="93"><link href="text/shared/explorer/database/11000002.xhp" name="Data sources in $[officename]">Data sources in $[officename]</link></paragraph>
<paragraph role="paragraph" id="par_id3150445" xml-lang="en-US" l10n="U" oldref="94">You can register a database with $[officename] and then insert records from the database into a document.</paragraph>
<section id="adressbuch">
<paragraph role="heading" id="hd_id3150616" xml-lang="en-US" level="2" l10n="U" oldref="49">Selecting the Address Book</paragraph>
<embed href="text/shared/guide/data_addressbook.xhp#adressbuch"/>
<paragraph role="paragraph" id="par_id3153049" xml-lang="en-US" l10n="U" oldref="101">To select the address address book that you want to use, choose <link href="text/shared/01/01110101.xhp" name="File - Templates - Address Book Source"><emph>File - Templates - Address Book Source</emph></link>.</paragraph>
</section>
<paragraph role="heading" id="hd_id3153748" xml-lang="en-US" level="2" l10n="U" oldref="19">Creating a New Data Source</paragraph>
<paragraph role="paragraph" id="par_id3153311" xml-lang="en-US" l10n="U" oldref="25">When you register a data source, $[officename] creates a link to the database so that you can access its data.</paragraph>
<list type="unordered">
<listitem>
<paragraph role="listitem" id="par_id3147576" xml-lang="en-US" l10n="U" oldref="8">To select and specify the properties of a data source, such as the name that $[officename] uses for the data source, choose <emph>Tools - Data Sources </emph>to open the <emph>Data Source Administration </emph>dialog.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3147209" xml-lang="en-US" l10n="U" oldref="3">To use an existing database, type the path to the database in the <emph>Data source URL </emph>box. If the data source is a text or dBase database, specify the folder that contains the database and its tables.</paragraph>
</listitem>
</list>
<paragraph role="heading" id="hd_id3147275" xml-lang="en-US" level="2" l10n="U" oldref="26">Opening a Data Source</paragraph>
<paragraph role="paragraph" id="par_id3154143" xml-lang="en-US" l10n="U" oldref="102">To open the data source view, press F4 in a text, spreadsheet or form document.</paragraph>
<paragraph role="paragraph" id="par_id3154046" xml-lang="en-US" l10n="U" oldref="11">To view the contents of a database, click the plus sign (+) in front it name in the data source view.</paragraph>
<paragraph role="heading" id="hd_id3155449" xml-lang="en-US" level="3" l10n="U" oldref="28">Copying and Moving Database Objects</paragraph>
<paragraph role="paragraph" id="par_id3149164" xml-lang="en-US" l10n="U" oldref="14">In the data source view, you can copy database objects by drag and drop, even within the same database.</paragraph>
<paragraph role="paragraph" id="par_id3154897" xml-lang="en-US" l10n="U" oldref="100">To quickly add a record from a table cell in a $[officename] Writer document, an HTML document or from $[officename] Calc, select the cell, and then drag it into a database table in data source view. You can also drag a record from a database table into a document.</paragraph>
<paragraph role="paragraph" id="par_id3153561" xml-lang="en-US" l10n="U" oldref="52">To move a database object, hold down Shift while you drag.</paragraph>
<paragraph role="note" id="par_id3147559" xml-lang="en-US" l10n="CHG" oldref="53">Field naming conventions are different for different database types. For example, in dBase tables, field names can only be 10 characters long.</paragraph>

<paragraph role="heading" id="hd_id3145069" xml-lang="en-US" level="3" l10n="U" oldref="40">Copying database queries</paragraph>
<paragraph role="paragraph" id="par_id3151056" xml-lang="en-US" l10n="U" oldref="31">To create a new query that is similar to an existing one, simply drag the existing query onto the Queries container in the data source view.</paragraph>
<paragraph role="paragraph" id="par_id3150085" xml-lang="en-US" l10n="U" oldref="34">If you drag the query onto a table container, the query is treated as a table.</paragraph>
</body>
</helpdocument>