How to connect to ArcSDE spatial database using OpenOffice and Microsoft Office suites I. Introduction The use of GIS specific software does not limit the input of non-gis users. Current office suites can be used to manage (add, delete, or modify tabular data) attribute data. It has the advantage to require only well non office products such a Excel and Access from Microsoft Office, and Base and Calc from OpenOffice. This document detail the procedure to create a new table in ArcSDE using ArcCatalog, and to connect office suites to the newly created table. II. Create a table into an existing ArcSDE database 1- create a new shape file for point features in ArcCatalog; 2- migrate the file to ArcSDE server; See how to connect to ArcSDE server 1. Double-click on Database Connection and then on Add Spatial Database Connection 2. Enter the name of the server where ArcSDE is hosted, the name of the SDE service you want to connect to (the service is named in the SDEHOME/etc/services.sde file), the name of the database, the SQL account user name and password.
3. Test Connection; if connection successful, click OK. II.1- Migrate a file from ArcCatalog to ArcSDE database 1. Select the file you want to migrate, right-click and choose export; 2. Choose Geodatabase (single) or (multiple) depending on the number of files you want to migrate at once 3. In the opening windows, click on Output Location, select Database Connections and the database you want to connect to Page 2 of 15
4. Choose Add 5. In Output Feature Class Name, write the name of the table will have in the SQL database, click OK. The table is created and added as <database_name>.dbo.<table_name>. III. Use remote clients application to populate the database III.1- Use OpenOffice as a client application OpenOffice.org is a multiplatform and multilingual office suite and an open-source project. Compatible with all other major office suites, the product is free to download, use, and distribute. It may be downloaded from http://www.openoffice.org 1.a) Connect OpenOffice to an SQL database using ODBC The procedure of connecting OpenOffice to an SQL database will be done each time a new data source has to be added. Once added to the current list of data sources, any table of the database becomes accessible from OpenOffice. 1. In OpenOffice, choose File > New > Database. Page 3 of 15
2. Click Connect to an existing database, click ODBC in the list, and then click Next. Page 4 of 15
3. Click Browse. If your data sources is already listed, double-click it, then click Next. Go directly to the next paragraph Complete database registration in OpenOffice and acccess the data, page 10. If your data source is not listed, continue below to see how to add a data source. Add a new data source 4. If your data source was not listed in the step described above, click on Browse; in the opening windows, click on Add Page 5 of 15
5. In the opening windows, create a new data sources by locating the SQL data source Page 6 of 15
6. Name the new data source <Waste_Survey>, provide Description, indicate which SQL server you want to use; click next. 7. In the next windows, indicates Server authentification method, the user Login and password, click next. Page 7 of 15
8. Change the default database of the SQL server to the one that hosts the table we created earlier (refer to the <database>.dbo.<table_name> file in ArcCatalog). Click next. 9. In the next windows, accept the default conditions, click Finish. Page 8 of 15
10.You are sent back to the ODBC data source administrator. Choose your data source and click OK. 11.Click OK to test the data source. If the test is successful, a new windows opens, click OK. Page 9 of 15
1.b) Complete database registration in OpenOffice and acccess the data 12. You are back to the Database Wisard and your newly added data source appears in the data source windows. Click on next. 13.Provide your user name and password to the SQL database, click Next. Page 10 of 15
14. Register the Database on you local system and open it for editing, click Finish. The database opens in a new Base window. From here you can access your data. 15.In the left pane of the database window, click the Tables icon to see a hierarchy of tables. Type the database password if prompted, and then click OK. 16.To retrieve the data in a table, in the Tables pane, double-click a table. Click the Queries icon to create a query.use any of the methods listed in the Tasks pane to create a query. Page 11 of 15
III.2- Use Microsoft Access as a client application and connect to an SQL database 1. Click on Start > Programmes > Microsoft Access. In the Access Opening Windos, click Files > New. In the right panel, click on Blanck Data Access Page. 2. In the opening windows, choose Opening New SQL Connection Page 12 of 15
3. Indicate the server to connect to, the Username and Password, click on Next. 4. Select the Database and Click Next. Page 13 of 15
5. Write a name for your file, choose where to save it, provide a description of the content of the Database. Click Finnish. Your Database is accessible throughmicrosoft Access. You may create a data access template and add new entries to you database. Page 14 of 15
Page 15 of 15