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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:26:12+00:00 2026-06-10T22:26:12+00:00

We currently have an issue with our MSSQL 2005 database. We’ve recently undergone a

  • 0

We currently have an issue with our MSSQL 2005 database. We’ve recently undergone a migration from windows server 2003 to 2008. SQL Server has remained as 2005. I’m using SQL Server Management Studio to work on.

All the tables in the database follow the format: [SCHEMA].[TABLE_NAME]

When I enter the SQL:

SELECT * FROM [table_name]

I get the error message: Invalid object name ‘[table_name]’.

If I type in:

SELECT * FROM [schema].[table_name]

This works fine. The username we log into the database with owns the schema which is prepended to all the table names.

The problem is, we have 3rd party companies which have software which exports data from the database. 2 companies have now tried to run their exporters, however are getting the error ‘Invalid object name’. The software is logging in with the username which owns the schema.

My question is exactly the same as this one I’ve found on the internet:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=99802

However the answer on that question seems to be full of keywords rather than actual sentences which makes it very hard to understand.

If anyone could help, it’d be greatly appreciated.

Many thanks

Phil

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

    Set the default schema for the 3rd party’s username to the schema their un-prefixed references should point to:

    ALTER USER foo WITH DEFAULT_SCHEMA = [bar];
    

    (This is different from owning the schema.)

    And tell them to write software correctly. In SQL Server you should always be specifying the schema name, even if you always use dbo.

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

Sidebar

Related Questions

I currently have a issue with firefox, where all other browser behave in the
I'm having an issue with multiple markers on google maps - I currently have
I have a strange issue . I am currently working on a mail app
I have a modeling issue with Symfony2/Doctrine2. I am currently trying to pass a
So i have a lack of knowledge issue with this. I'm currently streaming my
The current issue im facing is comes from the following scenario. I have a
Currently have a drop down menu that is activated on a hover (from display:none
We currently have an application that is roughly 22 megs total. Our current deployment
We currently have a Live ASP.NET application (Basically a CMS) running on our IIS7
We currently have all of our tracking / analytic code in a usercontrol (ascx).

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.