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
Creating a new client takes a hash of options. For valid iconv encoding options, see the output of `iconv -l`. Only a few have been tested, and are highly recommended to leave blank for the UTF-8 default.
101
+
Creating a new client takes keyword arguments. For valid iconv encoding options, see the output of `iconv -l`. Only a few have been tested, and are highly recommended to leave blank for the UTF-8 default.
102
102
103
103
*:username - The database server user.
104
104
*:password - The user password.
105
105
*:dataserver - Can be the name for your data server as defined in freetds.conf. Raw hostname or hostname:port will work here too. FreeTDS says that a named instance like 'localhost\SQLEXPRESS' will work too, but I highly suggest that you use the :host and :port options below. [Google how to find your host port if you are using named instances](http://bit.ly/xAf2jm) or [go here](http://msdn.microsoft.com/en-us/library/ms181087.aspx).
106
106
*:host - Used if :dataserver blank. Can be an host name or IP.
107
107
*:port - Defaults to 1433. Only used if :host is used.
108
108
*:database - The default database to use.
109
-
*:appname - Short string seen in SQL Servers process/activity window.
109
+
*:app_name - Short string seen in SQL Servers process/activity window.
110
110
*:tds_version - TDS version. Defaults to "7.3".
111
111
*:login_timeout - Seconds to wait for login. Default to 60 seconds.
112
112
*:timeout - Seconds to wait for a response to a SQL command. Default 5 seconds. Timeouts caused by network failure will raise a timeout error 1 second after the configured timeout limit is hit (see [#481](https://github.com/rails-sqlserver/tiny_tds/pull/481) for details).
0 commit comments