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 7770739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:28:55+00:00 2026-06-01T16:28:55+00:00

I run following queries : a. select * from TABLE_TEMP The query is executed

  • 0

I run following queries :

a. select * from TABLE_TEMP

The query is executed successfully but, no rows are returned. the returned dataset is empty and contains 0 rows.
The execution plan of this query can be downloaded from :
Execution Plan Query a

b. select count(*) from TABLE_TEMP

This query is also executed successfully but, it returns some finite value
The execution plan of this query can be downloaded from :
Execution Plan Query b

Can you provide me any pointers to resolve this issue.

PFB the screenshot:
Weird behavior

  • 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-01T16:28:57+00:00Added an answer on June 1, 2026 at 4:28 pm

    You might be suffering from some sort of corruption in your database. Run DBCC CHECKDB (or DBCC CHECKTABLE) after familiarising yourself with the documentation. In particular, the section on index checking with respect to database compatibility levels and:

    In earlier versions of SQL Server, the values for the per-table and per-index row count and page counts can become incorrect. Under certain circumstances, one or more of these values might even become negative. In SQL Server 2005 and later, these values are always maintained correctly. Therefore, databases that are created on SQL Server 2005 and later should never contain incorrect counts; however, databases that are upgraded to SQL Server 2005 and later might.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following MySQL query: SELECT value_1, ( SELECT value_4 FROM table_1 WHERE
I'm trying to run a query from a .NET page but I seem to
I have the following line: $products = $dbh->query(SELECT piP2Components.typeID, invTypes.typeName FROM piP2Components INNER JOIN
Can not run following SQL from ant's sql task : BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE( queue_table =>
when I trying to run following code. var result = from c in db.brand
If I run the following query in SQL Server 2000 Query Analyzer: BULK INSERT
When I run the following test in Gallio's Icarus it passes, but when I
I have the following 4 selects: select english,type from table where type='brief' ORDER BY
The following query works properly to pull company names from one table into jquery
If I run the following queries each one returns quickly (0.01 sec) and gives

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.