Displaying 1 result from an estimated 1 matches for "pat_ckey".
Did you mean:
dat_key
2009 Aug 28
0
Error connecting to Sybase (odd)
...l:
pacs:
adapter: sybase
database: mydb
username: read_only
password: read_only
host: myhost
port: myport
And then I have the following model:
class PacsPatient < ActiveRecord::Base
establish_connection "pacs"
set_table_name "patient"
set_primary_key "pat_ckey"
end
So, when I go to the console and try to do something like..
>> PacsPatient.find 1
#<Class:0x481a610>: connect failed
from c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybct.rb:27:in
`connect''
from c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybct.rb:27...