Hi Avinash,
Can you please tell me, what you see when you run the following script
(assuming SQL Server 2K on Win XP):
#----------------------------------
require ''active_record''
ActiveRecord::Base.establish_connection(
:adapter => "sqlserver",
:host => "DBI:ADO:Provider=SQLOLEDB;Data Source=(local);Initial
Catalog=master;Integrated Security=SSPI",
:database => "master"
)
class Sysobject < ActiveRecord::Base
end
tables = Sysobject.find_by_sql("select name from sysobjects where xtype =
''U'' ")
tables.each{|t| puts t.name}
#--------------------------------------
I get to see all the names of user defined tables on my setup.
Once we get past this point on your setup, making it work in Rails is left as
an exercise :-)
HTH,
-- Shashank
Avinash <avinash404@gmail.com> wrote:
I get the following error message when trying to connect to ms sql
server:
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060604/94e2d782/attachment-0001.html