All,
Using Rails 1.1.6
AR against MS SQL Server (ODBC mode).
I need to do some fancy bulk inserting of data, which I need to ensure
is within a transaction. But as I think about it, it isn''t clear to me
whether what I want to do will work within standard AR.
Can I do something like this:
MyClass.transaction do
MyClass.connection.execute("arbitrary SQL")
end
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---