Re: Allowing Fully Qualified Queries
From: Andrew J. Kelly (sqlmvpnooospam_at_shadhawk.com)
Date: 12/05/04
- Next message: Brian PIerce: "Re: Restore Sql6.5 dump to different server"
- Previous message: Carlo Razzeto: "Re: Allowing Fully Qualified Queries"
- In reply to: Carlo Razzeto: "Allowing Fully Qualified Queries"
- Next in thread: Carlo Razzeto: "Re: Allowing Fully Qualified Queries"
- Reply: Carlo Razzeto: "Re: Allowing Fully Qualified Queries"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 5 Dec 2004 18:50:23 -0500
That is because you are referencing it incorrectly. It is not
Database.table but rather Database.own.table. If the owner is dbo you can
also substitute .. for dbo like this: YourDB..YourTable
Even when you are accessing objects int he same db you should get in the
habit of owner qualifying them lik:
SELECT * FROM dbo.Table
-- Andrew J. Kelly SQL MVP "Carlo Razzeto" <crazzeto@hotmail.com> wrote in message news:%23kgd5Py2EHA.1404@TK2MSFTNGP11.phx.gbl... > Hello there, I recently installed MS SQL server on one of my servers and I > have a question. When preforming a select I'm supposed to be able to refer > to a database table in the from clause by it's fully qualified name > (database.table) eg. > > SELECT * FROM NorthWind.Customers; > > How ever if I attempt to preform this type of query I get the following > error back > > "Unknown object....". > > How can SQL Server be configured to allow me to specifiy a database table > by it's fully qualified name? > > Carlo Razzeto >
- Next message: Brian PIerce: "Re: Restore Sql6.5 dump to different server"
- Previous message: Carlo Razzeto: "Re: Allowing Fully Qualified Queries"
- In reply to: Carlo Razzeto: "Allowing Fully Qualified Queries"
- Next in thread: Carlo Razzeto: "Re: Allowing Fully Qualified Queries"
- Reply: Carlo Razzeto: "Re: Allowing Fully Qualified Queries"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|