You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**NOTE:** The method we utilize to make SHOWPLANs work is very brittle to complex SQL. There is no getting around this as we have to deconstruct an already prepared statement for the sp_executesql method. If you find that explain breaks your app, simple disable it. Do not open a github issue unless you have a patch. Please [consult the Rails guides](http://guides.rubyonrails.org/active_record_querying.html#running-explain) for more info.
153
153
154
154
155
-
## New Rails applications
155
+
## New Rails Applications
156
156
157
157
When creating a new Rails application you can specify that you want to use the SQL Server adapter using the `database` option:
158
158
159
-
160
159
```
161
160
rails new my_app --database=sqlserver
162
161
```
163
162
164
-
To then connect the new application to your SQL Server instance edit the `config/database.yml` file with the username, password and host of your SQL Server instance.
163
+
To then connect the application to your SQL Server instance edit the `config/database.yml` file with the username, password and host of your SQL Server instance.
0 commit comments