Connecting to an MSSQL database from a Ruby on Rails application running on Ubuntu

后端 未结 7 1331
名媛妹妹
名媛妹妹 2021-01-01 00:34

I have a situation where I\'m trying to build a web app which takes a total count of records in a table and outputs it to the screen. Sounds simple right...?

The mai

相关标签:
7条回答
  • 2021-01-01 01:14

    I used activerecord-sqlserver-adapter with tiny_tds and it works!

    Here's database.yml

    development:
      adapter: sqlserver
      username: 'user'
      password: 'secret'
      dataserver: 'dbserver_name\instance_name'
      database: 'dbname'
      appname: 'my app name'
    
    0 讨论(0)
提交回复
热议问题