Discussion:
[nhusers] how to use nvarchar(max) in hibernate xml
chaitanya krishna
2017-12-05 03:32:47 UTC
Permalink
HI i am new to nhibernate i am facing one problem using nhibernate

i read some where article and added to my xml file like this way

<property name="templateBody" column="TemplateBody" type="StringClob"
sql-type="NVARCHAR(max)" />

but at the time of run time it showing error like *"The 'sql-type'
attribute is not declared."*

will u please some one help me on this
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Oskar Berggren
2017-12-05 21:30:18 UTC
Permalink
type is not necessary. Set length="" to anything between 4000 and
1073741822 (i.e. 1GB-2bytes) and you will get nvarchar(max).
Post by chaitanya krishna
HI i am new to nhibernate i am facing one problem using nhibernate
i read some where article and added to my xml file like this way
<property name="templateBody" column="TemplateBody" type="StringClob"
sql-type="NVARCHAR(max)" />
but at the time of run time it showing error like *"The 'sql-type'
attribute is not declared."*
will u please some one help me on this
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Oskar Berggren
2017-12-05 21:31:37 UTC
Permalink
To be clear, length must be at least 4001 and at most 1073741822.
Post by Oskar Berggren
type is not necessary. Set length="" to anything between 4000 and
1073741822 (i.e. 1GB-2bytes) and you will get nvarchar(max).
Post by chaitanya krishna
HI i am new to nhibernate i am facing one problem using nhibernate
i read some where article and added to my xml file like this way
<property name="templateBody" column="TemplateBody" type="StringClob"
sql-type="NVARCHAR(max)" />
but at the time of run time it showing error like *"The 'sql-type'
attribute is not declared."*
will u please some one help me on this
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Loading...