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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:15:47+00:00 2026-05-17T06:15:47+00:00

I have a schema define in my database. Except now everytime I do a

  • 0

I have a schema define in my database. Except now everytime I do a sql statement I have to provide the schema …
SELECT * FROM [myschema].table

I set the default schema for my user using management studio and also ran the
ALTER USER myUser WITH DEFAULT_SCHEMA [myschema]
and I still get the invalid object ‘table’ when writing a query without the schema (SELECT * FROM table)

Is there a way to write SELECT * FROM table without having to specify the schema name all the time?

It’s on SQL 2005 using SQL Management Studio.

  • 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-17T06:15:47+00:00Added an answer on May 17, 2026 at 6:15 am

    Is the user an SA, if so it will not work, according to the documentation SA users are always defaulted to the dbo schema.

    The value of DEFAULT_SCHEMA is ignored
    if the user is a member of the
    sysadmin fixed server role. All
    members of the sysadmin fixed server
    role have a default schema of dbo.

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

Sidebar

Related Questions

I am trying to define a table structure/schema for this simulation database. I have
I have created Rails database using the following schema: ActiveRecord::Schema.define(:version => 20090807141407) do create_table
I'm using MS SQL Server. When I define the database schema I define a
A table I have no control of the schema for, contains a column defined
I have a table which have schema like this id name 1 jack 2
I know that I should have schema of a table before calling NewRow method
I have a schema design that looks like this: Table: User Row Column Family
I am developing using zend framework and doctrine2.1. I have generated entities from database.
I am working with an SQLAlchemy database. I have a simple schema with columns
I am currently working on restructuring my site's database. As the schema I have

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.