Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SchemaExportTask query

 
Neha Gap
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using this task for converting my hbm.xml files to and sql script for SQL Server 2005. My problem is this - my hbm.xml file contains a field which is of type String with length 2147483647. When I run the schemaExportTask, it maps this field to varchar(2147483647). This is incorrect since in SQL Server 2005, varchar cannot have size more than 8000.

Is there any way of changing this (other than writing a custom dialect?)

Thanks,
Neha.
 
Neha Gap
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, the field should be mapped to text and not to varchar(2147483647).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic