OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

SCRIPT 'filename' not working?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
bazianm
Newbie
Newbie


Joined: 23 Dec 2009
Posts: 3

PostPosted: Wed Dec 23, 2009 6:03 am    Post subject: SCRIPT 'filename' not working? Reply with quote

Hi all,

I have an access MDB that I need to convert to MySQL. I do not have access. I figured that I could open it in Base and work with it that way but I have run into a roadblock. I am guessing that the answer will be "You can't do that" but I thought I would ask given that I am fairly new to OpenOffice.

According to posts I have seen, I can open a SQL window and just issue the command SCRIPT 'filename' and base will generate a SQL Script. It doesn't seem to work in this setup. Is it because I am not using a BASE database but am connecting to an Access mdb?

Does anyone have any suggestions on how I can do this (without having to manually recreate the structures in MySQL?)

Thanks
Back to top
View user's profile Send private message
Sliderule
Super User
Super User


Joined: 29 May 2004
Posts: 2476
Location: 3rd Rock From The Sun

PostPosted: Wed Dec 23, 2009 8:25 am    Post subject: Reply with quote

bazianm:

You asked:

bazianm wrote:
Is it because I am not using a BASE database but am connecting to an Access mdb?

The answer is, the SCRIPT 'filename' is a command ONLY recognised by the HSQL database engine.

HSQL is the 'default' database engine used by OpenOffice Base. If however, you are 'connected' to a different database engine from Base, such as Microsoft Access, you can only use the commands that database engine, via the Connection . . . for example, ODBC, JDBC etc offers.

You said:
bazianm wrote:
I do not have access.
You might want to try to try to 'convert' it to a Comma Separated Values file ( CSV ) from a site such as this ( or any other tool that can convert from .mdb to a file format you want ):

http://media-convert.com/

Where you can convert FROM Microsoft Access, to Microsoft Excel, open the Excel file in OpenOffice Calc, and, save the Access Tables as CSV ( Comma Separated Values ) file(s) that can be used by MySQL.

Another Alternative:

Read the information in the link below, with a detailed explanation by Sliderule on using a LINK to an Access database file to create a CSV file:

http://www.oooforum.org/forum/viewtopic.phtml?t=77347

I hope this helps, please be sure to let me / us know.

Sliderule

Thanks to add [Solved] in your first post title ( edit button ) if your issue has been fixed / resolved.
Back to top
View user's profile Send private message
bazianm
Newbie
Newbie


Joined: 23 Dec 2009
Posts: 3

PostPosted: Wed Dec 23, 2009 9:26 am    Post subject: Reply with quote

Thank you for your reply.

Getting the data into CSV is not the problem. I was hoping to get the schema scripted so I did not have to recreate the structure...
Back to top
View user's profile Send private message
Sliderule
Super User
Super User


Joined: 29 May 2004
Posts: 2476
Location: 3rd Rock From The Sun

PostPosted: Wed Dec 23, 2009 9:47 am    Post subject: Reply with quote

OK.

I have never done that. But, a quick internet search provided a few links that might be of interest.

  1. http://dev.mysql.com/tech-resources/articles/active-grid.html]

  2. http://blog.taragana.com/index.php/archive/how-to-export-ms-access-database-to-mysql-database/

  3. http://sourceforge.net/projects/mdbtools/
I hope this helps, please be sure to let me / us know.

Sliderule

Thanks to add [Solved] in your first post title ( edit button ) if your issue has been fixed / resolved.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group