Informatika Mihelac
March 03 2009 rails | sqlserver

Rails - dump database structure for SQL Server

Dumping structure with rake db:structure:dump task when connecting to SQL Server will fail with scptxfr not found error.

command not found: scptxfr /s  /d  /I /F db /q /A /r

Thats documented in #3298. However dump of database structure can be easily achived from ActiveRecord:

script/console
>> ActiveRecord::SchemaDumper.dump

About

I am Bojan Mihelac and this blog is dedicated to share code, thoughts, tools and advices I came up with while working in Informatika Mihelac.

Contact: bmihelac AT mihelac.org
Twitter: /bmihelac

RSS feedSubscribe to RSS Feed