Solved

Are there any characters in a record set field that causes GetRows() to record the field or other fields as blanks?

Posted on 2009-07-10
3
279 Views
Last Modified: 2012-05-07
In using GetRows() in an asp/vbscript  page, including a field from a small record set which contains URLs, the GetRows() fails to get one or more of the other fields . Using the query below, the sueBlogWhatsHotParagraph field is blank
The SQL query is
"SELECT  sueBlogWhatsHotSource, sueBlogWhatsHotParagraph, sueBlogWhatsHotUrl FROM tblSueBlogWhatsHot WHERE (sueBlogID = '"&CInt(selectedBlogID)&"') AND (sueBlogWhatsHotEndDate IS NULL OR sueBlogWhatsHotEndDate >= GETDATE()) ORDER BY sueBlogWhatsHotOrder"
The four URL fields are
index.asp?leftButNo=2&selectedTopButID=6&topButNo=3&selectedBlogID=23&selectedBlogMonth=7&selectedBlogYear=2009
http://www.waitrose.com/ourcompany/leckfordestate/leckfordfarm.aspx
http://www.fifiefofum.com/newsDetails.asp?newsID=38&newsYear=2009&newsMonth=4
http://www.fifiefofum.com/galleryArtist.asp?contactNameID=660&productCategoryID=14&topButNo=1&galleryShop=2
I have experimented by including additional fields and the resulting missing fields in the array changes with the position of the URL field in the SQL query.  The URL field does appear in the array again dependent upon its position in the query.
Reloading the GetRows() array by looping through the original record set works.
0
Comment
Question by:sturgerm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 24828821
What database are you using and what are the data types for the columns selected?
0
 

Author Comment

by:sturgerm
ID: 24829456
MSQL 2008
varchar(50), varchar(max) and varchar(max)
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 24830958
There used to be a problem with ADO and BLOB data types in that if you listed the BLOB fields first the rest of the columns would be Null.  It does not appear to be your case as you have listed them last.  The other possibility is that you are using an old provider that does not support the new data types.  Perhaps you can temporarily change the data types for the columns listed from varchar(MAX) to varchar(100)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question