2

I created dump file of database in Mysql.Now i want to restore all the data of mysql to Sql Server.In case for mysql its simple by running source dumpfile name,but how may i restore all the table data for Sql Server and also the syntax of dumpfile is different for Sql Server.

How to Restore Mysql database to MS Sql Server in Rails 4 on Windows

9
  • i am getting this error....while i run rails c or rails s in cmd prompt. Commented Apr 5, 2017 at 11:12
  • D:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/apartment-1.2.0/lib/apartment/tenant.rb:41:in rescue in adapter': The adapter sqlserver_adapter` is not yet supported (RuntimeError) Commented Apr 5, 2017 at 11:12
  • there's no problem when i rub rake db:create,only problem is on running rake db:migrate,rails c,rails s command. Commented Apr 5, 2017 at 11:17
  • Please elaborate more on how you are doing the migration, what are the gems involved and the contents of your database.yml config file. You would also want to take a look at this question: stackoverflow.com/questions/2621682/… Commented Apr 6, 2017 at 5:25
  • default: &default mode: odbc adapter: sqlserver dsn: mydsn username: abc password: **** timeout: 0 development: <<: *default mode: odbc adapter: sqlserver dsn: mydsn database: abc_development username: abc password: **** timeout: 0 test: <<: *default mode: odbc adapter: sqlserver dsn: mydsn database: hrms_test username: abc password: **** timeout: 0 production: <<: *default database: abc_production username: sa password: <%= ENV['ABC_DATABASE_PASSWORD'] %> Commented Apr 6, 2017 at 6:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.