Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 17th, 2003, 09:36 PM
Promopipe Promopipe is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 Promopipe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Text wont show on page, but nvarchar will

Hi,
we are using sql version 7
we have a table that has a column for large amount of text (like an article) we used text for the datatype and for some reason the text just wont show on the page or in the text box on the edit form. All we get is a 0 on the page, can anyone help with this? I know the code works cause all works great if I just change the datatype to varchar but then I am limited to 8000 chars. which just isnt enough in this case.

Any help would be greatly appreciated
<% response.write("<b>Thank You</b>") %>

Reply With Quote
  #2  
Old December 18th, 2003, 12:17 AM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 21 h 28 m 48 sec
Reputation Power: 180
Try copying the rs("blobfield") text to a local variable right after you get the recordset. Then work with the local variable instead of the recordset value.

You can only read a blob field once from your asp code.

Reply With Quote
  #3  
Old December 18th, 2003, 12:28 AM
Promopipe Promopipe is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 Promopipe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problem solved

Hi,
thanks for the hint, not sure if it works, but I did find a work around on another site, I thought I would share it incase someone else has this problem. The big trick is to put the TEXT column at the end of the sql statement so if your colums are:
phone - varchar
name - varchar
information - text

use SELECT phone,name,information

I Know it sounds stupid but it is a glitch and I was shocked that it worked too, but it does, ohh the "SELECT *" doesnt work when using TEXT data types, hope this helps someone.

Cheers
Happy Again

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Text wont show on page, but nvarchar will


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway