Displaying 20 results from an estimated 5000 matches similar to: "activerecord and mssql server"
2006 Mar 08
1
MSSQL error - 80004005 & Rails
hey there folks, i have a bit of a sitch here and i would love some
help/input on it.
i''ve inherited a horrible asp/mssql app that i''m re-writting using
rails, but unfortunately i have to keep the asp version up and running.
in order to do so i''ve had to write some admin functions, which i''ve
done in rails. because the mssql schema wasn''t written
2006 Jun 26
1
Rake + SQL Server + Migrations == Errors. Help?!
Hello all,
I''m trying to initialize my migrations against a current database
implementation.
rake db:schema:dump runs without error.
The resulting schema.rb is pasted below, along with my database.yml
Can one of you point me in the direction of enlightenment?
--
------------------------------
Apple MacBook. Black. It''s the new White!
------------------------------
Peter
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
2007 Jul 30
0
Rails/MSSQL error
Hi,
I have been encountering this error when I try to save text with
japanese characters:
DBI::DatabaseError: Execute
OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server
Line 1: Incorrect syntax near ''20070730''.
HRESULT error code:0x80020009
Exception occurred.: INSERT INTO categories ([category_name],
[updated_at], [created_by],
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
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
2007 May 31
0
Rails AR/SQLServer Unit Test: [6912] failed (but getting better)
"bitsweat" has given AR/SQLServer some love, but it''s still unhappy...
http://dev.rubyonrails.org/changeset/6912
------------------------------------------------------------------------
r6912 | bitsweat | 2007-05-31 10:15:56 -0700 (Thu, 31 May 2007) | 1 line
Fix an edge case with find with a list of ids, limit, and offset. Closes #8437.
2006 Jan 16
2
ActiveRecord: table name with spaces?
Howdy.
I''m trying to work with a legacy SQL Server database where some of the
table names have spaces in them.
I''ve done set_table_name "tablename with spaces", but I can''t get
find(:all) to work. I get the following error (because apparently
it''s not putting [ ] around the name as is required for SQL Server for
names with spaces.
2006 Jun 09
5
Connecting to SQL Server 2000 database - errors
I just started investigating Ruby on Rails and am trying the tutorial.
I need to connect to a SQL Server 2000 database for testing purposes. I
followed the instructions in the How-To on the wiki for SQL Server. The
problem is that when attempting to connect to the database I receive the
following errors:
DBI::DatabaseError in RecipeController#new
Open
OLE error code:80004005 in
2006 Apr 07
2
MSSQL activerecord uses bad syntax
Hi all,
I''m trying to get rails up on mssql for a friend, does anyone have
experience? We''re working on a Windows XP box with MSSQL 2000 (no
service pak), and both rails (1.1) and MSSQL are on the same box. I''m
running into a bug (I think) where activerecord is using this syntax:
SELECT TOP 1 * FROM users WHERE (users.user = ''jbgnuumnbu'')
2006 Jan 19
3
problems with migrations in sql server
Is anyone using migrations with a SQL Server database who might be able to
lend me a hand? I''ve used migrations with MySql in the past and haven''t
run into any issues so forgive When I run rake migrate nothing is actually
getting updated in my database. I created a migration using
./script/generate migration AddFooTable and updated the migration to look as
follows:
class
2006 Jul 20
1
Having issues saving line items to the DB
Hello everyone, I''m fairly new to Rails (writing my first real app) and
brand new to this mailing list.
I''ve got a rails/sql error I just can''t seem to solve. It''s probably
really simple, but I''m been googling and reading for a day and have made
zero progress on it. Hopefully someone on this list can shine some light
on my problem, or point me in the
2006 Mar 29
2
edge_rails, sqlserver, and an error!
Hello,
Using Edge_Rails and SQL Server I get an error in my schema.rb file after
issuing "rake migrate".
database.yml
---------------------------------
development:
adapter: sqlserver
database: triage_development
username: user
password: pass
host: server
schema.rb
---------------------------------
# Could not dump table "categories" because of following
2006 Feb 06
0
sqlserver image columns
I am trying to upload word docs to an image column. I followed the
cookbook for how to upload files and it works on a MySQL db (upload
and download) on SQLServer however I get the following error
DBI::DatabaseError: Execute
OLE error code:80040E07 in Microsoft OLE DB Provider for SQL Server
Operand type clash: text is incompatible with image
HRESULT error code:0x80020009
Also I when
2006 Jan 19
0
db_schema_dump for SQL Server
We''re using migrations to manage a SQL Server project and have been running
into a number of issues with db_schema_dump/migrations. Can anyone confirm
that these are actual issues with the SQL Server adapter and not issues with
me :)
1) Fields are not properly setup with proper null settings (:null => true /
false). I''m wondering if we need to update the def columns method
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
2011 Apr 15
2
php53 and MSSQL
[Reposted now I've joined the list, so I hopefully don't get moderated out]
Hi,
I've upgraded lots of machines to 5.6 (thanks!) and there was one
particular machine that I'd also like to upgrade to PHP 5.3.
Unfortunately it seems I can't.
On the machine I have php-mssql installed, and it appears that there is
no php53-mssql.
php-mssql is built from the php-extras SRPM, so
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:
2004 Dec 07
2
WINE x Delphi BDE + MSSQL Client
Hi,
I have an app with Delphi7 + MSSQL, developed during 10 years.
Now, the users have asked me about some way to run this app into Linux
Fedora Core 2/3.
I use Fedora for apps in Java with no problems, but I never heard about
Delphi run.
I look at WineHQ site about this combination of Delphi + MSSQL but I
didn't find. I found some thing about Delphi 7 install and slow
behaviour in
2004 Feb 09
0
Samba PDC failing to provide authentication for MSSQL ODBC connection in NT Authentication mode
Workstations in our network fail to make ODBC SQL server connections
using NT authentication mode.
This is our situation:
We are running Samba 2.2.7a as PDC. We also have one Windows 2000 server
running MSSQL server and being a member of this domain.
The MSSQL server is used by an accounting program (Exact Globe 2000)
running on several client computers in our network (members of the
domain).