Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7837785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:50:49+00:00 2026-06-02T14:50:49+00:00

I have an error in the following sql. (SELECT shorthand, display, larry_ranking, site_url FROM

  • 0

I have an error in the following sql.

    (SELECT shorthand, display, larry_ranking, site_url
FROM larrydb_site_list lsl JOIN larrydb_review lr on
lsl.sid = lr.sid 
WHERE display=true AND niche='regular' 
ORDER BY larry_ranking DESC Limit 2)


UNION


(SELECT shorthand, display, larry_ranking, site_url
FROM larrydb_site_list lsl JOIN larrydb_review lr on
lsl.sid = lr.sid 
WHERE display=true AND niche='regular' AND shorthand='sexier')

I put it into one line:

    dim rsFav
sSQL = "(SELECT shorthand, display, larry_ranking, site_url FROM larrydb_site_list lsl JOIN larrydb_review lr on lsl.sid = lr.sid WHERE display=true AND niche='regular' ORDER BY larry_ranking DESC Limit 2) UNION (SELECT shorthand, display, larry_ranking, site_url FROM larrydb_site_list lsl JOIN larrydb_review lr on lsl.sid = lr.sid WHERE display=true AND niche='regular' AND shorthand='sexier')"
Set rsFav = objConn.Execute(sSQL)

I get this error..

ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the requested name or ordinal.

/sandbox/inc_fav_sites.asp, line 29

I think the problem is in the sql string….not in the asp code..cause I didnt touch it

This line 29 <a href="http://livecamdeals.com/review.asp?sitename=<%=LCase(rsFav(""))%>"></a>

Sorry, I dont know asp programming but sql..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T14:50:50+00:00Added an answer on June 2, 2026 at 2:50 pm

    Your problem is that, in ASP, you are asking the RecordSet (i.e. the results back from SQL) for a column called "" (empty-string).

    Obviously, you’re SQL does not return such a column!!

    The fix is to change the ASP code to select the correct column. E.g. to select the site_url column :

    LCase(rsFav("site_url")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following sql query: UPDATE (SELECT * FROM table_A INNER JOIN table_B
I have the following SQL: SELECT ( (SELECT SUM(vote_score) FROM question_votes JOIN questions ON
i have the following access sql statement: SELECT * FROM (SELECT [Occurrence Number], [Occurrence
I have the following SQL query: select ID, COLUMN1, COLUMN2 from (select ID, COLUMN1,
I have the following SQL code: select @colNames = coalesce(@colNames+',','')+''''+ RptLOB1 +'''' from CM.Correlation
I have the following sql: SELECT `id` FROM `exchange` WHERE `photo` = 1 ORDER
I have the following SQL query: IF EXISTS(SELECT * FROM component_psar WHERE tbl_id =
I have wrote the following SQL: SELECT s.*, (SELECT COUNT(*) FROM orders o WHERE
I have the following SQL statement: SELECT efforts.user_id, project_tasks.task_name, sum(hours) FROM efforts, users, project_tasks
I have the following SQL statement sample: SELECT DISTINCT [CommentNdx] ,[CommentsText] ,[DateTimeAdded] FROM [dbo].[CommentTable]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.