Displaying 20 results from an estimated 6000 matches similar to: "MS SQL server"
2006 Jan 05
3
MS SQL server connection problems
I am trying to connect to a remote sql server and I am getting the
following error:
c:/ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb:57:in `connect'': Open
(DBI::Databa
seError)
OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
or access
denied.
HRESULT error code:0x80020009
Exception
2009 Apr 14
6
SQL Server via DBI/ODBC configuration
I have followed the cookbook on http://wiki.rubyonrails.org/database-support/ms-sql
but am having problems with the rails part. I can connect to the
database using sqsh so I think all the freetds plumbing is good. When
I try to connect to the db with a rake db:migrate or just using script/
console I get this error:
>> Client.find(:first)
DBI::InterfaceError: Unable to load driver
2006 Jan 10
1
sql server freetds/odbc question
I''m having an error from Linux via freeTDS/ODBC to SQL Server with
cod that runs fine against SQLite and MySQL. Here''s the code:
def find_recipes_for_workorder_by_id
@recipe_pages, @recipes = paginate_with_sort :recipes, :per_page
=> 10, \
:conditions => ["recipe.workorder_id = ?", params
[:workorder]]
render :template =>
2006 Jan 10
1
sql server & linux: left join problem
I''ve got a left join problem of some sort connecting from linux
FreeTDS/ODBC to SQL Server. It''s similar to the false post I had
earlier, but this is a real problem. Here''s my code:
def find_recipes_for_workorder
@recipe_pages, @recipes = paginate_with_sort :recipes, :per_page
=> 10, \
:joins => ''left join workorder on
2008 Feb 29
17
Is SQL Server not supported in RoR on the Mac?
Hi -- I''ve been having problems connecting to a SQL Server database that
I thought might be related to the fact I was upgrading Rails to 2.0.
However, I also was moving the project to my shiny new macbook.
Anyway, after jumping through a few hoops (instaling DBI, etc.), I
finally get to my latest error message:
<error>
DBI::InterfaceError: Could not load driver (no such file to
2019 Jun 13
2
Problema de INSERT en Windows SQL
Pd: Perdón por el duplicado de mensaje, se me olvido poner el asunto al
anterior y me han surgido nuevas consultas.
Buenos días,
llevo unos dias peleando para realizar una consulta con INSERT en Windows
SQL. He probado varios paquetes de R y con ninguno lo he conseguido.
Ahora mismo estoy probando con DBI y odbc.
Probé con dbSendStatementy al ejecutar la consulta:
2006 Feb 02
3
Strange SQL Server error
Hi,
In an app I''m developing I''ve run into a strange problem. I''ve created
some controllers and models using the scaffolding generator and
everything seemed to work fine.
However I''ve noticed that a particular model I''ve created always fails
its tests and I can''t test it out in a browser due to the same error I''m
getting which is:
2006 Feb 15
2
Problems Connecting to SQL Server
I''ve been asked to make my app work on Windows Server 2003 and connect to
SQL Server. I''m having trouble getting connected to SQL Server. It fails as
follows:
is not a class/module
C:\InstantRails-1.0\ruby\lib\ruby\site_ruby\1.8\dbi\dbi.rb:499 in
''load_driver''
So, I went through the instructions on the Rails/MSSQL page. I installed the
ADO.rb stuff.
Also,
2007 Sep 26
1
Ruby on Rails | MS SQL Server 2005 | Configuration
Request: Full description of mechanims required to intergrate current
Ruby / Ruby on Rails with MS SQL Server 2005
Environment:
* Ruby 1.8.6-25
(ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32])
* Rails 1.2.3
* ruby-dbi 0.1.1 (installed dbi,dbd_ADO)
* OS: Windows XP Professional sp4
* MS SQL Server Express 2005 installed on local machine
Background:
I have used various settings for the
2008 Jun 30
2
Using ODBC/RODBC with DBI
Hi all, I would like the following code to work, but it doesn't:
library(DBI)
library(RODBC)
m <- dbDriver("RODBC") # Example for dbConnect(DBI), causes error
m <- dbDriver("ODBC") # Example for DBIDriver-class(DBI), causes error
The errors are:
Error in do.call(as.character(drvName), list(...)) :
could not find function "RODBC"
(substitute
2009 Jan 23
7
RubyOnRails with MS SQL - Connectivity Error
Hi all...
Please help me solve the issue.
While trying to create a connection with MS SQL database in RubyOnRails,
I''m getting a ‘Deprecated ..’ error. (I referenced a doc posted in net
for the same.)
System details: OS: Windows Xp
Ruby version: 1.8.6
Rails: 2.1.2
Gems: 1.3.1
RadRails: 0.7.2
2009 Mar 01
1
Temporary tables with Microsoft SQL?
I can create a temp table with MySQL and R DBI[1], but I don't see how
to do the same with Microsoft SQL 2005 and RODBC. R 2.8.1 creates the
table, but then it can never see it. I'm looking to avoid replacing
the convenience functions like sqlSave().
[1] https://stat.ethz.ch/pipermail/r-help/2009-March/190033.html
> library(RODBC)
> channel <-
2009 Feb 12
4
Rails & unixODBC
Hello,
I decided to embrace getting a new Rails application to see an
existing MSSQL database and trying to get unixODBC, freeTDS, and
ActiveRecord able to query my MSSQL database.
I''m following the procedure outlined at
http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServerFromRailsOnLinux
but my system (Ubuntu 8.10 - Intrepid Ibex, Rails 2.3, Ruby 1.8.7)
2009 Aug 06
1
Help ::Not able to Connect R to SQL Server 2000
Hi Simon,
I am using the R 2.9.1 with Window XP.
I have one query related with R to the database. I have successfully connected R to MS-Access.
But when I tried to connect R to SQL Server 2000 then it throwing some class not found error.
I tried the below script for R and try to connect to SQL Server 2000.
> library(rJava)
> library(DBI)
> library(RJDBC)
2005 Mar 10
1
Running unit tests on SQL Server
Hi everyone,
It''s been more than a month since I last fired up Ruby or ActiveRecord, so
imagine my surprise when, after getting the latest source and running the
unit tests for MySql, I was greeted with a screen full of errors.
I''ll come back to the MySql errors later. What follows is the output I get
when I run the tests for SQL server.
I installed ruby with the one-click
2006 Mar 10
7
ODBC adapter connection help please.
Does anyone have any experience getting ODBC to work? I could really use
some help here.
I''m having trouble accessing a db2 database via odbc using rails. It''s an
external database, that I import data from. I have placed the connection
code in my model :
unless connected?
establish_connection(
:adapter => "odbc",
:dsn => "<dsn
2004 Jan 09
1
R and Postgresql (DBI)
Hi,
I'm running Debian (Sid), Postgres (7.3.4) and
R (1.8.1).
I get the following error when I tri to use DBI
>library("DBI")
> p <- dbDriver("PostgreSQL")
Error in do.call(as.character(drvName), list(...)) :
couldn't find function "PostgreSQL"
Is there any other package I need in order to
interface between R and Postgres ?
2008 Jan 17
6
Problems with sqlserver 2000 and ActiveRecord
Hi,
I''m getting some trouble in connecting to a sql server 2000
database with ActiveRecord-2.0.1 and ruby 186-26, from
win XP.
Using the next conenction config:
ActiveRecord::Base.establish_connection(
:adapter => "sqlserver",
:database => "nombre_bd",
:username => "usu",
:password => "contra"
)
I have the next error:
2006 May 29
3
is Sql Server support built in?
Have installed ruby-one-click installer 1.8.4-16 and rails. Am unable to
get an app to talk to by SS2000 database using adapter: sqlserver. Is Sql
Server support built-in, or do I need to install something else?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part --------------
An HTML attachment
2004 Nov 18
2
Informix database
We use Informix database. I was able to connect to the database with
S-PLUS by using its CONNECT/Java through the JDBC driver.
How can I connect to Informix with R, wither using JDBC or any other
method? we run Linux so I prefer a method other than ODBC.
Thankx for the help