Displaying 7 results from an estimated 7 matches for "tinytds".
Did you mean:
tiny_tds
2012 Apr 10
4
TinyTds::Client.new() gives an error "undefined symbol: dbsetluser"
Hello Dear experts,
I am new to Ruby on Rails. Though I want to access to MSSQL 2005 from
ruby.
I installed tiny_tds using following commands:
>sudo apt-get install freetds-dev
>gem install tiny_tds
And now when I executed
@client = TinyTds::Client.new(
:username => ''username'',
:password => ''password'',
:host => ''192.168.1.45'',
:database => ''test_db'',
:login_timeout => 5,
:timeout => 5
)
, it gives an erro...
2013 Dec 17
1
ActiveRecord and tiny_tds
...#39;rubygems''
gem ''tiny_tds'', ''= 0.6.2''
require ''tiny_tds''
gem ''activerecord'', ''= 3.2.12''
require ''active_record''
require ''activerecord-sqlserver-adapter''
client = TinyTds::Client.new(:username => ''user'',:password => ''pass'',:host
=> ''host'',:database => ''db'')
result = client.execute(sql)
=> #<TinyTds::Result:0x000000022c3e48>
When I try the same query with an ActiveRecord::...
2012 Jul 18
5
Any comment on adding #cast and #cast! to ActiveRecord::Relation?
Not getting any love (tender or otherwise) on my pull
request<https://github.com/rails/rails/pull/7035>so I thought you
folks might like to chip in. What do you think?
#cast and #cast! allow you to declare a mapping from generated column names
to simplified
database column types (i.e. those used in migrations). This way scopes with
columns generated in their select lists can also include
2012 May 04
7
Unable to Install ruby-odbc gem on windows 2008 server bit
Hi,
I am trying to install the ruby-odbc gem on windows 2008 server
Enterprise SP2 64 bit version
I have installed the devkit for ruby and it is also getting installed.
When trying to install this ruby-odbc gem some how make.exe file is
getting crashing and I am unable to install it further.
I am able to install the same gem on a 32 bit machine but the same
procedure does not work out on 64
2012 Jan 02
4
Which AR Interfaces Leverage PreparedStatements/Binds?
I could not find the answer to this in a few Google searches and thought I would ask.
So when are prepared statements best leveraged in ActiveRecord''s interface? I never really noticed before, but simple condition hashes or scopes do not pass down the binds so that prepared statements are leveraged. So a `Car.find(1)` would but things like `Car.where(:id => 1).first` do not. Is it a
2010 Dec 06
15
Windows new installation - Always problems
I would like to know if there is a way to ''package'' an application
with all the associated gems and ship it to a new server and having it
to "just work" in a Windows environment.
Although I have never done it I know that Rails can be frozen into the
application. I am wondering if I can do the same thing with other
gems. I have found this
2012 Jan 11
4
ActiveRecord: ar-each_model
Hi,
today I went into a problem, when I had to iterate over a big result
set. ActiveRecord produces a huge array of model instances, which
consumed 1GB of memory on my machine. A comparable perl DBI script
only used some KB for iterating over the result set.
Then I was suggested to use batch (#find_each) for the problem. But
basically batch does the same thing by splitting the query into
several