Displaying 1 result from an estimated 1 matches for "dvrstatusreport".
2006 Sep 18
1
SQLServer adapter fails to commit on save()
I am writing a test outside of a Rails project, but ''require''-ing enough
to use the ActiveRecord classes. It is connected to SQL Server 2005.
It reads in XML and adds an ActiveRecord object like this :
report = DvrStatusReport.new
:
report.x = y
:
report.save
puts report.id
This outputs a new id each time, but the record doesn''t appear in the
the table according to the SQL Server Management Console.
If I do similar in IRB, it does appear. Using the SQL Server profiler I
see
the line "IF @@TRANCOUNT >...