Move data from Sql Server 2008 to Mysql Rails - ruby-on-rails

I've got legacy data in a SQL Server 2008 db. Since rails support for SQL Server is a little complicated, I'd like to move that data to MySQL. I've installed rails-sqlserver, so I can access the data from the old database.
Is there a way I can read the data from the SQL Server db but then save it to the MySQL db that is running the app?
Thanks

If you just need to move the data as a one off I'd export your data out of SQL Server as csv files providing your data isn't too complex.
I would manually create your MySQL tables so you can choose your data types as the options differ from those in SQL Server.
You could then import your csv files.

Related

Is there an ad-hoc tally table in Advantage Database Server?

I am aware that SQL Server has master..spt_values.
I'm interested in an analogue of this table in Advantage Database Server.

How to hide SQL Server database structure

I need to deliver ASP.NET MVC application to client. It uses a SQL Server database.
Is there any way that I hide the database structure from users? They will be admins on server and do installation.
Thanks

Connect a Rails application to microsoft access

I have a client which want to have data from a form to an access database. I seen some odbc connector for rails but it's only old projects.
I can export/inport data in CSV but I want the simpler solution.
Do you know if there is a solution to connect Rails with Access?
Thanks!
If his access database doesnt already exist then a good solution would be to create a rails application with a MySQL database then use microsoft access as a front end to the mysql db (OBDC). Ref Access as front end to MySQL
So he can see all data from the mysql db through access and easily import the entire db to his local machine if he wanted to but it wouldn't be required.

Migrating mvc2 to mvc4 with ef/codefirst and sql server to inmemory database

I have ASP.NET mvc2 web application already running in two machines and connected with sql server. My database is 200mb at max. I want to migrate my web application to use mvc4 and EF and I also want to use some in memory database by droping sql server.
I checked on internet and i can migrate my application to mvc4 and EF but I could not find help about which in memomry databse i can use with EF/Codefirst. Also how can I backup inmemory database to some web based storage as Amazon S3 or Azure storage?
First of all, why do you want to use an in memory database? Sql databses have great reliability and querying capabilities.
When using two servers, an in memory database isn't going to work since the memory will be local to each server. You can use a distributed cache or something to make this work.
The Entity Framework isn't suited for this scenario. It is an object relational database mapper. It makes no sense to use this with an in memory database. An ORM translates objects to a relational store (like a database). In memory you only deal with objects so you don't need an ORM.
If your database is only 200mb you will not have any performance problems. A database is optimized for your scenario and an ORM like the Entity Framework will speed up your development time.

Access Outside Database from within Rails

I need to access data in an MS SQL database from a rails app.
The MS SQL database is maintained by our contractors, we just need to access data from it.
Is there a way in rails that I can access an outside db (not the main rails db)?
I can write my own SQL queries, I just need to open a connection to that outside db.
I'm on Rails 3.2.1
Thanks
Check out Connection Ninja , it's pretty straight forward and easy to use.

Resources