No idea what the problem might be (I'm fairly new to Sequel), but...

1) You can try looking at the source.  Here's the adapter file:

https://github.com/jeremyevans/sequel/blob/master/lib/sequel/adapters/tinytds.rb

2)  You can check what table name is being assigned with:

MyModel.table_name


http://www.rubydoc.info/gems/sequel/Sequel/Model/ClassMethods#table_name-instance_method

3) You can turn on logging by adding this option in your Sequel.connect() 
(or Sequel.tinytds()) call:

loggers: [Logger.new($stdout)]


You'll be able to see Sequel try to DESCRIBE the table to learn it's 
schema, which will tell you what name it's coming up with.

-ofer




On Thursday, October 8, 2015 at 1:43:41 PM UTC-4, Nicholas Variz wrote:
>
> I am sure I am missing something obvious here, but I have looked for a 
> solution on http://sequel.jeremyevans.net/documentation.html.
>
> I have a table named 'VIEW_SomeTableName' that I want to wrap with a 
> sequel model.
> I defined this class: 
>
> ' class MyClass < Sequel::Model(:View_SomeTableName) '
>
>
> but using it results in a Sequel::DatabaseError: TinyTds::Error: Invalid 
> object name error.
>
>
> If i instead just do a DB.fetch('select * View_SomeTableName') everything 
> works.
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to