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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:02:18+00:00 2026-05-31T23:02:18+00:00

Up until today I’ve been able to run queries without using the [databaseName].[dbo].[fieldName] syntax.

  • 0

Up until today I’ve been able to run queries without using the [databaseName].[dbo].[fieldName] syntax. And all of a sudden, if I use select * from myTable I get an error for an invalid object. I can’t possibly think of something that happened between shutting down my PC yesterday and today. Anyone know anything about this?

Msg 208, Level, 16, State 1 Line 1
Invalid object name 'mytable'

It’s only been since today that I have to include the database name in the query. There are no other connections open and no other users of this instance of SQL Server.

  • 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-31T23:02:20+00:00Added an answer on May 31, 2026 at 11:02 pm

    I think you mean a query of the form select [fieldName] from [databaseName].[dbo].[mytable]

    Here are some possible things to look out for:

    • Make sure that you are in the correct database context / catalogue (i.e. use [databasename], or select the correct database from the Available Databases drop down in SSMS)

    enter image description here

    • Ensure that if you have a case sensitive collation on your database that the object names in your query match the exact case.
    • Check that the default schema for your user hasn’t changed on this database. Although the default schema is usually [dbo], it can be changed.

    Edit : More ideas:

    • Do SELECT DB_NAME() to see what the current database name is.
    • Check to see if someone has dropped the table or view entirely, e.g. from the target database, run:
    Select * from sysobjects where name = 'myobject' 
    OR
    Select * from sys.tables where name = 'mytable' 
    OR
    Select * from INFORMATION_SCHEMA.TABLES
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been extensively searching all over the net last night until today and
Have a have a Windows VPS using Plesk 9. Until today I have been
Until today, I have been able to use bzr pull server:path/to/trunk , but today
Up until today, I have been able to test my app on my CDMA
My IDE has been working very well, until today. When I try to compile
I am working with a CMS, and up until today its been fine. But
Until yesterday everything was normal but today i try to lauch my application using
I have a user that has, up until today, been called foo.bar . Now
This is literally my first day using PHP. I've never seen it until today,
Up until today I was using git in the following manner: a master repo

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.