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

  • Home
  • SEARCH
  • 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 8403877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:27:08+00:00 2026-06-09T22:27:08+00:00

I am SQL Server devloper who is trying to optimize a Sybase query. I

  • 0

I am SQL Server devloper who is trying to optimize a Sybase query. I am trying to get a non cluster index to seek, but it keeps doing scan, just wanted to confirm is “seek” possible in Sybase if yes how to acheve a non cluster index seek?

I have a query like below (* is actually some 32 columns)

SELECT
t.*
FROM dbo.g1_positions t
WHERE t.source_date = (select max(source_date) from g1_positions)

I have 3 non cluster index (no cluster index) on table as below

  1. index named primary_key on columns entity_id, bgnref, retnum, source_date
  2. index named idx_entdte on columns entity_id, source_date
  3. index named idx_bgndte on columns bgnref, source_date

The inner query (which calculates max does index scan on idx_entdte), outer index by default does a table scan, if I force an index it does index scan and some thing extra which is decribe by
“Using I/O Size 2 Kbytes for data pages.
With MRU Buffer Replacement Strategy for data pages.
“

My guess is this equivalent to “look up” we have in SQL Server.
After forcing index i do not see performance gain I was just wondering what can i do get performance improvement.

I can not do any changes on table like creating/droping/modifying index.

Just to give idea of lookup in SQL Server work.

Suppose we have table Employee with 4 records.

enter image description here

If a query uses non cluster index on Emp_id it will reach Leaf Node and to get actual data will use pointer to read actual data(row) on heap. This process using pointer is called LookUp

  • 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-09T22:27:09+00:00Added an answer on June 9, 2026 at 10:27 pm

    It’s possible!

    If it’s not using it supposedly it’s because the table scan is better.
    That might be because the statistics are off! Update them as well.

    If needed, you can force the use of the index, for more info check this example.

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

Sidebar

Related Questions

I'm trying to get SQL Server Report Manager to work. I'm on windows 7,
I have the SQL Server 2005 Developer Edition DVD. I have been trying to
I am using SQL Server 2008 developer edition. I was trying to attach the
I've just installed SQL Server 2008 Developer edition and I'm trying to connect using
Yeah I know that SQL Server has got free express editions(2005/2008) But what i
I Need to Get BIDS Installed. I Have got VS2010 and Sql Server Developer
I'm trying to install SQL Server 2005 Developer Edition on my Windows 7 Ultimate
I'm an ASP.NET developer who has used Microsoft SQL Server for all my database
Trying to install SQL Server 2012 Developer Edition on my laptop. I keep getting
I'm trying to create a user in a SQL Server database with SQL authentication.

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.