Forum Moderators: open
I am having a problem with columns in my Database which are data type 'text'.
I am basically trying to pull info from the DB to an ASP page. I have done this loads of times, but this is the first time i have used Data type 'Text'.
The reason i am using text is because i am wanting to allow users to enter quite a bit of text.
The problem i am having is this:
When running the site off my local copy of SQL Server, all works fine. All data is inserted and selected from the Database without a problem. However, since putting the Database onto the the live SQL Server on our host server, all works, except columns of data type 'text'. For some reason, the info from these columns is not displayed on my ASP page, although every other column is.
Has anyone experienced this before?
Any help/advice is greatly appreciated!
Cheers
Webboy
On some of our projects, we found that it doesn't seem to be able to return two text variables (I know you say you can't get any at all, but it does seem to be related).
Our workaround is to have a separate SQL lookup for every text field, and to use VARCHAR 8000 instead wherever possible.
==================================================
<table width="230" border="0" cellspacing="0" cellpadding="0">
<%While not rs.eof%>
<tr>
<td><span class="bodyBOLD">
<% =rs("name") %> from <% =rs("fromwhere")%>
</span></td>
</tr>
<tr>
<td><span class="date"><% =rs("date_entered") %>
</span></td>
</tr>
<tr>
<td><span class="body"><% =rs("comments") %>
</span></td>
</tr>
<tr>
<td height="15"></td>
</tr>
<%
rs.MoveNext
wend %>
</table>
======================================================
All <% =rs()%> work apart from the <% =rs("comments") %>, which is the column with data type 'text'. I have tried varchar, but it seems to limit what people can enter.
What i am trying to create is a mini comment forum.....almost like an online football phone-in type thingy. Which means i cannot really judge how long peoples comments will be.
Surely this has been done before? any ideas how i can fix it?
Again, all help appreciated.
Regards
Webboy
product_id
product_url
product_description and the description is the text field then do
select product_id,product_url,product_description from products Also, don't use select * because that will include the description somewhere in the middle.
Hope that works for you!
rs.open sql, cn
if not rs.eof then
do while not rs.eof
Comment = rs("Comment")
----other stuff here----
rs.movenext
loop
rs.close
so on and so forth...