Displaying 20 results from an estimated 4000 matches similar to: "Problems Connecting to SQL Server"
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
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
2007 Oct 13
3
[RSpec] Unexpected behavior using TextMate Bundle...
Howdy,
Why does the bundle NOT work when I do the following:
- Start TextMate
- Open my project
- Open my spec
- Try to run spec and get an error
While the following DOES work:
- Open Terminal
- Locate my project
- Start TextMate via command line (mate .)
- Open my spec
- Try to run spec and it works
Cheers,
Mel
-------------- next part --------------
An HTML attachment was
2007 Oct 11
4
[RSpec] Question about using TextMate Bundle...
Hey Everyone,
First time poster! woot!
Can someone please point me to a Wiki, FAQ, web page, that I can reference
to help me debug why my installation of the TextMate Bundle doesn''t work?
Am I supposed to install the gem, then install the plugins into a project,
then install the bundle before the bundle can work?
I can run ''rake spec'' at the command line just fine;
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
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:
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
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 Aug 18
2
DBI: connect succeeds in IRB, fails in Rails
require ''dbi'' # 0.4.2
dbh = DBI.connect(''DBI:ODBC:PACS'', ''username'', ''password'')
This works in IRB; in Rails it fails (taken from Rails console):
DBI::InterfaceError: Unable to load driver ''ODBC'' (underlying error:
uninitialized constant DBI::DBD::ODBC)
from
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
2006 Nov 04
0
Weak DBI support for MSSQL (was rails and MSSQL transactions)
There is something seriously wrong with DBI support for SQL server. I
have tried both DBI::ODBC and DBI:ADO and the following code always
fails.
---------- Code
require ''dbi''
host= "DEVELOPMENT_DATABASE_SERVER"
database="adventureworks2000"
username="someusername"
password="Somepwd"
db = DBI.connect("DBI:ADO:Provider=SQLOLEDB;Data
2007 Dec 10
8
could not find activerecord-sqlserver-adapter locally or in a repository
I''m trying to connect to a SQL Server db. I thought I installed the
DBI component per the instructions, but its not working.
When trying to start the ruby server, I get the message:
Please install the sqlserver adapter: `gem install activerecord-
sqlserver-adapter`
But when I try to install the repository, I get this error message:
could not find activerecord-sqlserver-adapter
2006 May 01
1
Rails: Ho to connect to SQL Server
Hi,
I tried the steps explained in this link:
http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQLServer
The article t refers me to:
src/lib/dbd_ado/ADO.rb
But the file: dbi-0.1.0.tar.gz does not contain the src folder.
Instead, it contains this file:
\lib\dbd/ADO.rb
Am I missing some steps, or this is a document inconsistency?
Thank you,
Alan
--
Posted via
2006 Mar 28
8
Problem connecting with an SQL Server 2000 database
Hi,
I?m working on a rails application that uses data from an existing ms sqlserver 2000 database.
Unfortunately I can?t get the connection to work properly.
I used http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer to make the connection.
- Inserted the ado.rb
- Changed my database.yml to
development:
adapter: sqlserver
database: database_name
host:
2007 Sep 04
0
RoR on windows with MS SQL Server DBI:ADO driver Memory Leak
i''m running ruby 1.8.5 and rails 1.2.3 on windows with a bunch of
mongrels that are proxybalanced via apache 2.2.4
the db adapter i''m using is the sqlserver one in ADO mode. so it''s using
win32ole.
when a mongrel service is freshly started it consumes about 40 megs of
ram. but about each and every request is leaking memory. about 20 megs
per hour(!!!).
so after half a
2006 Aug 15
1
rails and MSSQL transactions
Hello,
I have rails using a MSSQL db. The set up works fine with low volume,
but with 2+ requests/second I keep on getting the following error:
DBI::DatabaseError: Execute
OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server
Cannot create new connection because in manual or distributed
transaction mode.
HRESULT error code:0x80020009
Exception occurred.: SELECT
2006 Jan 23
4
Proposal: Deprecate ADO support in the SQL Server adapter
The SQL Server adapter can currently operate in two modes, ADO and
ODBC, each of which uses a different interface to access the db. The
ADO interface is currently the default, while ODBC can be specified as
an option.
I propose this situation is reversed, and that use of the ADO
interface is deprecated, if not removed altogether. Here are some
reasons, I'm sure there are more:
a) ADO uses
2006 Jun 07
0
postgres-pr on windows
After installing One-Click Rails and Postgres 8.1 on Windows, I tried to
install the pure-ruby postgres adapter by running
gem install postgres-pr
It installed fine, and I can do this:
G:\InstantRails\rails_apps>irb
irb(main):001:0> require "rubygems"
=> true
irb(main):002:0> require "postgres"
=> true
But then if I specify in my config/database.yml to use
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 Jun 14
0
Mssql Multiple Database Access Error
Hi All,
I am having a problem to access multiple databases with mssql
I am running Ruby 1.8.4 and Rails 1.1 on Windows 2000 Advanced Server.
I am simply trying to integrate the application I wrote before for
Oracle to Mssql. The application works perfectly with Oracle with the
installed driver OCI8. The app retrives data based on a search criteria
from those databases.
I followed the directions