samsmithnz Posted August 18, 2005 Posted August 18, 2005 I'm having trouble with some ntext data in a comments field in our database. It doesn't seem to matter how I get the data, it just displays "<long text>". How do I get the real text from this field?? Quote Thanks Sam http://www.samsmith.co.nz
Joe Mamma Posted August 18, 2005 Posted August 18, 2005 select Cast(MyNtextField as Varchar(8000)) MyNtextField from MyTable Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
samsmithnz Posted August 19, 2005 Author Posted August 19, 2005 shoot. That doesn't work. I have a bad feeling that the data is acutally in there as "<Long Text>" and somehow the real long text is gone. Quote Thanks Sam http://www.samsmith.co.nz
Joe Mamma Posted August 19, 2005 Posted August 19, 2005 shoot. That doesn't work. I have a bad feeling that the data is acutally in there as "<Long Text>" and somehow the real long text is gone. try select MyNtextField from MyTable where MyNtextField like "<Long Text>" Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
samsmithnz Posted August 19, 2005 Author Posted August 19, 2005 try select MyNtextField from MyTable where MyNtextField like "<Long Text>" So I get 16 records that say <long text>... does this mean I've lost my data? Quote Thanks Sam http://www.samsmith.co.nz
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.