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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:46:46+00:00 2026-05-18T12:46:46+00:00

Upon reading INFORMATION_SCHEMA vs sysobjects , I wanted to ask the question: SQL Server

  • 0

Upon reading INFORMATION_SCHEMA vs sysobjects , I wanted to ask the question:

SQL Server 2005/2008 – Why is the sys.sysobjects view available to users without the schema name?
which seems to be already asked but I do not find that the answers answered the question(asked).

Why sysbjects is available as sys.sysobjects if sys schema did not exist in earlier versions of SQL Server?
(the explanation was that it is for backward compatibility with earlier versions of SQL Server)

Then, the answer by Barry:

SQL Server looks for objects in the
following order:

  1. sys schema
  2. users schema (This is
    different for Stored Procs – it will
    look in the stroed procs schema
    rather than the users schema.
  3. dbo schema

has left pending the question by Shaun in comments:
Why sys.objects is not queriable without “sys.” pefix (as objects)?

What are default schemas being searched by SQL Server and in which order?

  • 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-05-18T12:46:47+00:00Added an answer on May 18, 2026 at 12:46 pm

    The user’s default schema is searched, and then the dbo schema is searched. The sys schema is never searched, unless it’s explicitly specified (e.g. sys.objects).

    However, for the backward compatibility views (e.g. sysobjects) there is some special logic – the schema, even if specified, is ignored, and the view from the sys schema is used. Since older code would never create a table called “dbo.sysobjects”, this isn’t an issue, because these views are present for backwards compatibility, and should not be used for any future development.

    Fun and games with sysobjects:

    create table dbo.sysobjects (
        ID int not null
    )
    go
    select * from dbo.sysobjects
    go
    

    (For those who don’t want to run it – you still get the full sysobjects output, and not an empty table with one column).

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

Sidebar

Related Questions

On my reading spree, I stumbled upon something called Intentional Programming . I understood
I've recently embarked upon the grand voyage of Wordpress theming and I've been reading
While reading the OWASP site, I stumbled upon pages www.owasp.org/index.php/Category:Countermeasure and www.owasp.org/index.php/Category:Control . My
While reading about ASP.NET Ajax toolkit I stumbled upon the term AJAH. What is
I was just reading Rx HOL NET. Upon finding (example uses Windows Forms): var
Update : I just stumbled upon this in Eric Lippert's answer to another question
I was reading up on Ruby, and learned about its mixins pattern, but couldn't
I'm just reading up on SOA and the service registry / UDDI get mentioned
I've been reading up on conditional-style expressions in ruby. However I came across one
I've been reading up on branching/merging with Subversion 1.5 using the excellent and free

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.