Miscellaneous Database Tips

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:54, 18 January 2008 (edit)
Jgd (Talk | contribs)
(botlangbar to Fr page)
← Previous diff
Revision as of 10:40, 19 January 2008 (edit) (undo)
Jgd (Talk | contribs)
(dbf import tip - replace the Search and Replace tip, which doesn't work, with a link to the appropriate article in NeoWiki.)
Next diff →
Line 14: Line 14:
value to make it a text. value to make it a text.
-To change such text values to real numeric values, you have two choices.+To change such text values to real numeric values, you have several choices:
-* Change the field setting in the DBF from C to N and re-import the file or+They are described in [[Converting a Text String to a Number in Calc|this article]] in NeoWiki.
-* use the Search and replace functionality. + 
 +You can also change the field setting in the DBF from C to N and re-import the file.
 +<!--* use the Search and replace functionality.
*#Open the search and replace dialog and enter '.*' (without the quotes) into the search field. *#Open the search and replace dialog and enter '.*' (without the quotes) into the search field.
*# Type '&' (also without quotes) into the replace field. *# Type '&' (also without quotes) into the replace field.
*# Now press on the {{button|More}} button and click the option {{prefName|Regular expression}}. *# Now press on the {{button|More}} button and click the option {{prefName|Regular expression}}.
*# Click on {{button|Replace All}} and all the apostrophes should be gone. *# Click on {{button|Replace All}} and all the apostrophes should be gone.
 +Left in comments, just in case…
 +-->
==MS Access-related tips== ==MS Access-related tips==

Revision as of 10:40, 19 January 2008

This article is not up to date, or it needs structural or stylistic changes to conform with the rest of this wiki.

The following are miscellaneous database-related tips which currently do not have enough content to warrant a full article and which have no other home.

dbf import tip

The table structure of the dbf file for all the fields containing leading apostrophes say they are characters. This can easily seen if you import the DBF file and look at the first row. All columns have a header defining it. C is for characters (text), N would be numeric.

So Calc imports the values correctly as Characters. As the number format for the default template is set to numeric, a apostrophe is placed in front of the value to make it a text.

To change such text values to real numeric values, you have several choices:

They are described in this article in NeoWiki.

You can also change the field setting in the DBF from C to N and re-import the file.

MS Access-related tips

Well, a lack of drivers will definitely cause files to not be openable. Anything that requires the MS ODBC bridges won't work for sure, including Access files.

An ODBC driver that works with MS Access on a Mac is the Actual ODBC driver. It is a commercial one, but it works. The MySQL Migration Toolkit for the Mac can be found in the MySQL GUI Tools Bundle and can be used to move data from an MS Access database to a MySQL one (which NeoOffice will happily deal with). Other options are discussed on the Trinity forum.

Related External Links


This article in other languages: Français
Personal tools