Re: Novice - Owner / Setuser
From: Kresimir Radosevic (kresimir.radosevic@zg.tel.hr)
Date: 11/30/02
- Next message: Russell Fields: "Re: db_owner Role (SQL Server 7.0 v/s SQL Server 2000)"
- Previous message: Kresimir Radosevic: "Re: SQL Server 7.0 Login issue"
- In reply to: Martin Thorpe: "Novice - Owner / Setuser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Kresimir Radosevic" <kresimir.radosevic@zg.tel.hr> Date: Sat, 30 Nov 2002 11:30:04 +0100
If you do not specify object owner sql server assumes that database is
current database and owner is current login. If object is not found in your
schema it is searched in dbo schema. But there is a simple rule - always use
object owner.
-- Kresimir Radosevic, SQL MVP I support the Professional Association for SQL Server and its user community of dedicated professionals. www.sqlpass.org "Martin Thorpe" <mthorpe@sterlinginsurancegroup.com> wrote in message news:1592f01c2949e$3558a260$89f82ecf@TK2MSFTNGXA01... > Hi > > I notice in the Northwind database you can run a query > without puting in the owner name ie "Select field1 from > Mytable". > > I have created a database but even if I use > SETUSER 'Company' I still have to put the owner ie "Select > Field1 from Company.MyTable. > > Can anyone explain this or point me in the right > direction, I cant find anything in the online help, but > then I am probobly looking in the wrong area. > > Regards > Martin
- Next message: Russell Fields: "Re: db_owner Role (SQL Server 7.0 v/s SQL Server 2000)"
- Previous message: Kresimir Radosevic: "Re: SQL Server 7.0 Login issue"
- In reply to: Martin Thorpe: "Novice - Owner / Setuser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|