nText field not showing up (ASP)

T

tony

I changed the datatype of a field in a SQL Server 2000 database from
nvarchar to ntext, but now nothing is being displayed. The "Body" column of
the datatable used to be nvarchar(8000) and the below code works fine.
However once I changed the datatype of "Body" from nvarchar to ntext, it no
longer is displayed. Changing the field back to nvarchar and it is fine
again. Is there a special way for me to retrieve ntext fields? Any help
will be greatly appreciated.


set locDBConn = Server.CreateObject("ADODB.Connection")
locDBConn.Open DSN
sql = "SELECT * FROM Test;"
set rs = locDBConn.Execute(sql)

if (not IsNull(rs("ID"))) then
Response.Write("ID: " & rs("ID") & "<BR>")
end if

'This is the nText field
if (not IsNull(rs("Body"))) then
Response.Write("BODY: " & rs("Body") & "<BR>")
end if


-Tony
-Web Developer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top