Ask a Question related to ASP Database, Design and Development.
-
tony #1
ntext field not showing up (ASP)
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
tony Guest
-
Retrieve ntext field using ODBC Socket
Help....! I just upgraded cfmx6.1 to cfmx7, and all queries retrieve ntext field from MS SQL Server fail. It displays nothing or empty string... -
not showing a field if empty
Hi I have database query and the results are displayed on a page, now some of the fields are empty and they take up space. I wanted to know if... -
Lenght of NText field
I have been using MSAccess databases when working with CF for the past 8 years. The following query or something very much like it has been hugly... -
Showing only first part of the field in datagrid
Hi, I have a XML file as datasource, and I bind it to datagrid. Size of one of the columns in the dataset is quite long and I would like to show... -
Updating part of the text in an NTEXT field
SQL Server Version - 7 Table - Pages Field - Content Hi, I need to update an ip address in an ntext field. I have looked at UPDATEXT, the... -
Aaron Bertrand - MVP #2
Re: ntext field not showing up (ASP)
PLEASE DON'T MULTI-POST.
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand - MVP Guest



Reply With Quote

