Displaying 20 results from an estimated 9000 matches similar to: "Other options for SQL Server connectivity on Linux?"
2006 Jun 19
1
[OT] HowtoConnectToMicrosoftSQLServerFromRailsOnLinux from Ubuntu
Hello all,
I am trying to connect to my remote MS SQL server from Ubuntu.
I have followed
HowtoConnectToMicrosoftSQLServerFromRailsOnLinux<http://http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServerFromRailsOnLinux>as
best that I can.
TSQL is working, example below.
My configs are found below.
When I run isql :
> isql -v pubs name password
[IM002][unixODBC][Driver
2007 Apr 12
5
Ruby-ODBC compiled for Windows... Anything newer than 0.997?
Hey :)
We''re doing this large project, based on a legacy MSSQL database.
We''ve had some issues, particularly with datetimes, when communicating
with the server. These issues dissapeared after updating our ruby-odbc
package to a new version (we''re developing on Linux and MacOS X, and
connecting to the remote MSSQL server via FreeTDS and UnixODBC/iODBC,
and then ruby-odbc
2006 Mar 13
2
Connectivity to Microsoft SQL Server using ADO
Based on this page:
http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer
using this specification
development:
adapter: sqlserver
database: database_name
host: server_name
username: user_name
password: your_pw_here
in database.yml for your SQL Server connection doesn''t work. Some
debugging code reveals that only the password comes through into
2006 Jul 03
4
text_field doesn''t call overridden ActiveRecord getters
All,
In a template, I have
<%= text_field :target_list, :DateReceived,
{ :title => ''uploaded_at'',
:class =>
''target_list_info'',
:disabled => ''true'' } %>
Here is the DateReceived method on my
2006 Mar 20
5
Wrap error_messages_for() call when no instance var present
I am trying to put some smarts around a call to
<%= error_messages_for %>
so that when I first come into this page i.e. when my instance variable
@target_list has not been defined yet, the page doesn''t break.
I''m doing this:
<% if @target_list? %>
<%= error_messages_for ''target_list'' %>
<% end %>
I get a syntax error on line 1.
2006 Jul 17
18
Inserting datetime value into SQL Server
I have a SQL Server column named StartTime of (SQL Server) type datetime
If I attempt to set the attribute using
public
def StartTime=(time)
write_attribute(:StartTime, "{ts ''1899-12-30
#{time.hour}:#{time.min}:#{time.sec}''}")
end
it''s inserting a NULL value.
Anyone else able to successfully insert a date time value into a SQL
Server table using
1999 Oct 04
1
SQL-Interface
Can anyone give advice how to interactively exchange data between R and
SQL-Databases like DB2, ORACLE, MS-SQL-Server ?
If the answer is: 'currently not', this would be information for me as well.
I will summarize to the list.
Best regards
--
Dr. Jens Oehlschl?gel-Akiyoshi
MD FACTORY GmbH
Bayerstrasse 21
80335 M?nchen
Tel.: 089 545 28-27
Fax.: 089 545 28-10
http://www.mdfactory.de
2006 Mar 20
8
Best way to organize non-controller logic???
I don''t want to put certain code in my controller because I think it
makes things more confusing.
What is the best way to manage business logic such that it doesn''t end
up in the controller?
Basically, where should I put my regular utility classes and backing
objects that may not be models?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 May 25
5
rake migrate VERSION=0 doesn''t appear to execute
All,
I''ve decided to jump into Migrations before I get too far along on the
DB side of things.
I already have some tables built, and I went ahead and built the
migration that would have created them from scratch, and I made sure
that there was a self.down section to drop them. I wanted to verify
that I could roll back so I figured I would use rake to drop these
pre-existing tables
2006 Mar 20
4
Ajax.Request w/standard redirect doesn''t render
I am doing an Ajax call in my page to a controller method like so:
new Ajax.Request(''<%= url_for(:action => "target_list_add" )%>'', {
asynchronous:true });"
In my controller method "target_list_add", I do something and then I
say:
redirect_to( :action => ''target_list_upload'', :layout => false )
I know for certain
2006 Mar 14
8
The RoR equivalent of out.write() in JSP?
All,
In JSP, I can output strings in the Web page by either
<%= foo %> //foo is a string or returns a string
or
<% out.write("test") %> //write directly to the output stream.
What is the method of "writing to the output stream" in RoR? Basically,
what is the equivalent of out.write()?
I have an if then statement that I want to put around a call to
h
2006 Jul 05
7
HABTM join table has an "ID" column - is this an issue?
All,
I''m building model objects for existing tables that I cannot modify.
In AWDWR, Dave says "Note that our join table has no id column...The
second reason for not including an id column in the join table is that
AR automatically includes all columns from the join tables when
accessing rows using it. If the join table included a column called id,
its id would overwrite the id
2006 Jun 22
4
ADVICE: Generating unique identifiers for later DB insertion
All,
I have an ActiveRecord object that I need to be able to uniquely
identify _before_ I actually save the object (I may not end up saving
the object based on conditions). This is because I want to use the ID
in another context (a file name in the filesystem).
Depending on conditions, I may or may not need to do a lot of stuff
between the time that I generate the object ID and actually
2006 May 01
4
URL encoding in Rails?
Simple question:
How does one do URL encoding in Ruby/Rails?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2001 Jun 22
4
RODBC
Hi,
I have tried to install.packages("RODBC"), but it balks:
Installing source package `RODBC'' ...
creating cache ./config.cache
checking for library containing SQLTables... no
configure: error: no ODBC driver manager found
ERROR: Configuration failed for package `RODBC''
What am I missing?
What and where should "SQLTables" be? In another package?
What
2006 Jun 27
5
Can''t call public application.rb method from ERb template
All,
I have a left navigation partial that I want to dynamically generate CSS
classes for based on the current controller action.
In my ERb template, I have
<DIV class="<%= get_menu_display_style(''login_form'') %>">
In application.rb, I have the method get_menu_display_style defined as:
public
def get_menu_display_style(action_requested)
2006 Jul 10
8
Setup new data in the test database _after_ unit test runs
All,
I want to run automated unit tests as part of my build. I am building
to my test environment. Upon successful completion of all of my unit
tests, I would then like to load some data (using a fixture, I imagine)
into my test database that will act as fresh "system test" data for my
users to play with.
What is the best way to "load the standard system test/user acceptance
2008 Nov 06
3
Verifying some understanding about manipulating DB data in before/after callbacks in RSpec
We had an after(:each) callback that looked like this:
PurchaseOrder.find(:all).each {|po|
DraftInvoice.find_all_by_po_number(po.po_number).each {|di| di.destroy}}
which we were hoping would reset some purchase order data in a certain way.
However, because we have "self.use_transactional_fixtures = true" set in
test_helper.rb, this code was never getting committed.
So, I just
2006 Mar 28
3
AJAX/CSS issue (more UI focused)
All,
This isn''t strictly a problem or issue with RoR but I wondered if
someone might have some insight.
I have a DIV on a page which I am using to "preview" the contents of a
URL provided by the user. Basically, when the user clicks on a link, I
do an AJAX call to an action which uses Net::HTTP to request the URL in
question and then update the DIVs innerHTML attribute
2006 Jul 10
7
What is has_many :through really buying you over HABTM?
So having just learned how to do has_many :through as opposed to HABTM,
and then, being concerned that I wouldn''t get it to work, I started
thinking about these two approaches.
It seems to me that the _only_ problem that the HM:T (has_many :through)
approach solves that HABTM doesn''t is the issue of the potential
collision of id columns between your join table and one of