[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3137) SQLServerDialect: Schemaexport generates varchar columns for length>8000 which is not allowed in SQL Server

Johannes Rudolph (JIRA) noreply at atlassian.com
Thu Feb 28 05:40:33 EST 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29613 ] 

Johannes Rudolph commented on HHH-3137:
---------------------------------------

In the german version of SQL Server 2005 the error message sound like this:

Msg 131, Level 15, State 2, Line 278
Die Größe (104857600) für 'bemerkungen' (Spalte) überschreitet den für einen beliebigen Datentyp (8000) zulässigen Wert.

> SQLServerDialect: Schemaexport generates varchar columns for length>8000 which is not allowed in SQL Server
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-3137
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3137
>             Project: Hibernate3
>          Issue Type: Bug
>    Affects Versions: 3.2.4.sp1
>         Environment: Microsoft SQL Server 2005
>            Reporter: Johannes Rudolph
>            Priority: Minor
>         Attachments: sqlserver.patch
>
>
> MS SQL Server allows varchar columns to be only a maximum of 8000 bytes long. With length>8000 you have to use the 'text' type in SQL Server < 2005 and from 2005 on 'varchar(max)'.
> Supplied a patch which fixes this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the hibernate-issues mailing list