Welcome to Dream.In.Code
Become an Expert!

Join 149,810 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,739 people online right now. Registration is fast and FREE... Join Now!




WebPage Issue: SQL Database Length

 
Reply to this topicStart new topic

WebPage Issue: SQL Database Length, why is this happening?

eXceed69
19 Feb, 2007 - 10:00 PM
Post #1

"Super Sentai Knight Of DawN"
Group Icon

Joined: 12 Nov, 2006
Posts: 682



Thanked: 1 times
Dream Kudos: 675
My Contributions
I've created an SQL DB which includes a COMMENT column, I then connect to the DB and show the results of that column on my webpage using <%=oRs.Fields("comment")%>, however the COMMENT info is not fully showing and gets cut off (see example.gif), in fact the SQL DB is not saving the entire comment entry (see example2.gif).

Attached Image

Attached Image

Can someone please help me out with this, why is this happening?

This post has been edited by eXceed69: 19 Feb, 2007 - 10:16 PM
User is offlineProfile CardPM
+Quote Post

gregoryH
RE: WebPage Issue: SQL Database Length
20 Feb, 2007 - 12:15 AM
Post #2

D.I.C Regular
Group Icon

Joined: 4 Oct, 2006
Posts: 417


Dream Kudos: 50
My Contributions
QUOTE(eXceed69 @ 19 Feb, 2007 - 11:00 PM) *

I've created an SQL DB which includes a COMMENT column, I then connect to the DB and show the results of that column on my webpage using <%=oRs.Fields("comment")%>, however the COMMENT info is not fully showing and gets cut off (see example.gif), in fact the SQL DB is not saving the entire comment entry (see example2.gif).

Attached Image

Attached Image

Can someone please help me out with this, why is this happening?

HI eXceed..

I am not sure if I am barking up the right tree, but either:
  • the web form
  • the SQL statement
is truncating the text.

Check this by trying a regular select statement and see if the field is truncated. Some newer SQL DB haev implemented a type of BLOB statement to pick up large text and binary data.
User is offlineProfile CardPM
+Quote Post

Trogdor
RE: WebPage Issue: SQL Database Length
20 Feb, 2007 - 03:22 AM
Post #3

D.I.C Addict
Group Icon

Joined: 6 Oct, 2006
Posts: 549



Thanked: 4 times
Dream Kudos: 125
My Contributions
If it is a mssqlserver database you can try the TEXT fieldtype, it should give plenty of space.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 08:20AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month