Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28504

SQL nVarchar(MAX) with ASP no text displayed?

$
0
0

To anyone who can help.

I have created an SQL 2005 Database with an nVarChar(Max) field however when creating a connection and related recordset through ADODB to access to this field and output its text I get nothing.

Response.Write rsOut("TheField")

or

StrTmp = rsOut("TheField") with Response.Write StrTmp also gives me a nothing

Unusualy I find that Len(rsOut("TheField") or Len(rsOut("StrTmp ") gives me the correct number of characters.

I have run the same asp code with an SQL 2000 server and found that there are no problems. I am aware that nVarChar(MAX) is new to SQL server 2005 and thus I believe that it may be what is causing the problem but am lost to find a solution as I do not wish to change this field type in the database.

Any help on this problem would be greatly appreciated.


Viewing all articles
Browse latest Browse all 28504

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>