Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. invalid objects

invalid objects

Scheduled Pinned Locked Moved Database
databasehelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    manni_n
    wrote on last edited by
    #1

    i have just started learninf SQL 2000 when i mamakin simplest query in query analyzer select * from authors, where authors is the name of table, its giving error that invalid object ' authors'. how this error can be resolved???

    S C 2 Replies Last reply
    0
    • M manni_n

      i have just started learninf SQL 2000 when i mamakin simplest query in query analyzer select * from authors, where authors is the name of table, its giving error that invalid object ' authors'. how this error can be resolved???

      S Offline
      S Offline
      Sylvester george
      wrote on last edited by
      #2

      1. check the authors tabls exists in the database 2. check whether you selected / pointed the right database

      Regards, Sylvester G sylvester_g_m@yahoo.com

      1 Reply Last reply
      0
      • M manni_n

        i have just started learninf SQL 2000 when i mamakin simplest query in query analyzer select * from authors, where authors is the name of table, its giving error that invalid object ' authors'. how this error can be resolved???

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        manni_n wrote:

        its giving error that invalid object ' authors'. how this error can be resolved???

        If you are just learning a better question would be "What does the error mean?" so you can understand what it means in the future. SQL Server has a number of database objects. These include tables, views, stored procedures, functions and so on. You can get a list of all object in the database by typing SELECT * FROM sysobjects The message "invalid object" indicates that the object either does not exist, or it is the wrong type of object for the context in which you are trying to use it. In this case you refer to a table object in the SELECT statement that does not exist (there may be another object in the system called authors, but that will be a different type of object, or be used in a different context.


        Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... * Reading: Developer Day 5 Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups