troubleshooting Question

SQLServer NText datatype not displaying in ASP Pages

Avatar of NickJPhillips
NickJPhillips asked on
Microsoft AccessASPMicrosoft SQL Server 2005
8 Comments1 Solution375 ViewsLast Modified:
I just upsized the backend to an ASP site (was MS Access) to SQL Server Express 2005 for lcoal testing purposes so I could work out the bugs before moving my production ASP site to the companies SQL Server... for the most part everything is working perfect. I had to change a few "Date()" values to "GetDate()" but otherwise I was pretty close to the mark when writing the code in the first place...However I have hit a weird gllitch I was hoping someone would know how to fix and what I did wrong.

In my table I have four fields:
News_ID (SQLSvr: int // Access: number)
NewsTitle (SQLSvr: nvarchar(50) // Access: text)
NewsBody (SQLSvr: ntext // Access: memo)
NewsDate (SQLSvr: datetime // Access: date/time)

IF I put the NewsBody on an ASP page by itself it is displayed when I run it. BUT if I put the NewsDate field BEFORE the NewsBody, then the NewsBody is NOT displayed, however if I plaec the NewsDate field AFTER the NewsBody field then everything IS displayed. To make things even weirder, if I try to do something similar with NewsTitle (placing it after NewsDate) nothing is affected... it is displayed just fine!!

Similarly, I have some other tables that use are set to NText and I am having problems displaying them in different pages...especially ones that pull these field through Javascript functions (like pop-up hover displays and such)

Not too bad for doing an auto-upsize with the Access wizard, but still irksome to deal with... any thoughts on how to correct?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros