This is a migrated thread and some comments may be shown as answers.

Varchar(MAX) Field Truncate

1 Answer 91 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fakhru
Top achievements
Rank 2
Fakhru asked on 29 Oct 2009, 02:58 PM
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); 

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 29 Oct 2009, 07:24 PM
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.
Tags
Databases and Data Types
Asked by
Fakhru
Top achievements
Rank 2
Answers by
Jan Blessenohl
Telerik team
Share this question
or