Varchar(MAX) Field Truncate

2 posts, 0 answers
  1. Fakhru
    Fakhru avatar
    37 posts
    Member since:
    Oct 2007

    Posted 29 Oct 2009 Link to this post

    I have code something like this:
    public class Test 
       // I have map this field to Varchar(MAX), MSSQL2005 Express as backend and Ado2 Driver 
       public string private_key; 
     
    // This value truncate when saved to Database
    Test test = new Test(); 
    test.private_key = "<RSAKeyValue><Modulus>oTwxcpj5g+xUjN7CItHnDwnKChBeZAuRsB4nHZc0QrEDokaSGD5ehg8+y610vc5bHQB65zGHSqDGiOlbk/LUQ5sX5UQCuGnhPkpYqPYw8u4wSG8hvEnOpjQm6lp11aarnI2ysMnUruV9kobZmoIbOrUuFo6h2N5cxutQBCOOo+V8=</Modulus><Exponent>AQAB</Exponent><P>0a4zu32g34BvnWRNdHgRqD8DvaByHxkidXWSvDbxJ0HuVLEstIcupxUErU1lheWwkcKMF5vNWS9KruZYlHCVaw==</P><Q>xNp5avOvjf9AOv0NvXDzEkSjPrLKZiOimsAHQM/7s59faI1AW6m+C/CL8fm2cpqTzfKoJ6OGe8dMNbrdZar03Q==</Q><DP>YnpqmCCBOfdcdJNzPUxXHqnZ2+nLL4fig0AhFnzHbiStBuHfmToUUyyv8aT0FZr2/r5chYoLO+PWM6bD25O02Q==</DP><DQ>j1eS8EJmMXYO5WVjXfEjbsgAPyWd8GY+f4UZQv6wAAorRUyl8plVxAfzP85gJm+c9Tifbc3LndJwEifyE5g7GQ==</DQ><InverseQ>oLXPVvTi577+e7o5TrIjOI3TjHz1yuL8o8OGuEo8v3q6IqHZp+G+rA4cMATwZZxDgbUpTU6ZClVHHgz28nWr/g==</InverseQ><D>m2Hc7WmLHJ3GpbOPN+s9V3rHhcu2OQG/9yNJmNAwjMhI2QLKxe8dUl/5N2WocyadgqeZuuOTFdAvXTWcnAUK8TOU8UGvSG6/BO6NB8aw4oB1Xw3MzZBmeRl4FdbixxnaZaIYkaDNKi37u54msyZZJYkfPqW6mHTxzrh/kIug9CxZ=</D></RSAKeyValue>"
     
    scope.Add(test); 

  2. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 29 Oct 2009 Link to this post

    Hello Fakhru,
    Can you try to set the legth of the field explictly to 0? You can do that in the forward mapping dialog. Please keep us informed if that fixes you problem. We had such an issue but i thought it is fixed.

    Regards,
    Jan Blessenohl
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
Back to Top