Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- From: "David Gugick" <david.gugick-nospam@xxxxxxxxx>
- Date: Thu, 20 Oct 2005 15:22:34 -0400
Sal Young wrote:
I'm running the following select statement to get a table does not exist error:
SELECT * FROM Address
I believe this was already addressed in another post (unless we're dealing with two identifical posts from two users).
SQL Server databases use the concept of schemas. That is, objects may or may not be owned by "dbo" - the general default from prior SQL versions. Because of this, the schema must be supplied so SQL Server knows where to look. The Address table in the AdventureWorks database is contained in the Person schema. So try:
Select * from Person.Address
--
David Gugick
Quest Software
www.imceda.com
www.quest.com
.
- Follow-Ups:
- Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- From: Gail Erickson [MS]
- Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- References:
- Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- From: Gail Erickson [MS]
- Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- Prev by Date: Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- Next by Date: Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- Previous by thread: Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- Next by thread: Re: How to access SQL Server 2005 with Query Analyzer (SQL 2000)
- Index(es):
Relevant Pages
|