473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Object Owners.

It has been suggested by our DBA group that all developers when
working on objects within a database create objects not under the DBO
owner but under individual owners eg

instead of
dbo.sp_getUsername
the stored procedure would be
smithJ.sp_getUserName

I have never seen this used before in sequel development although I
believe it is a method used by other database ingress/oracle ?

I have never seen any one do this and can't see any benefit accept in
making the developers life more complex as the stored procedures,
tables etc would need to be renamed to belong to the dbo group once
they were moved onto our production server. In addtion code calling
them would need to be modified after testing as we prefix our .Net
calling with the dbo prefix

eg command.CommandText = "dbo.[usp_UpdateSavedSearchId]"

Has any one followed this owner convention and are their any pros and
con's with it.
Jul 23 '05 #1
2 1403
Hi

What happens to the user's account when he/she leaves the company?
You can't remove the user from SQL Server as the user owns objects.

I work for one of the largest financial institutions, and our policy is that
all object have to be owed by dbo, development, production and UAT. It is an
audit point.

Re-naming object is a lot of work as it is not just the object, but the
references to it and your code. One mistake and it blows up in production.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mi**@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"Erick" <jo**********@hotmail.com> wrote in message
news:e1**************************@posting.google.c om...
It has been suggested by our DBA group that all developers when
working on objects within a database create objects not under the DBO
owner but under individual owners eg

instead of
dbo.sp_getUsername
the stored procedure would be
smithJ.sp_getUserName

I have never seen this used before in sequel development although I
believe it is a method used by other database ingress/oracle ?

I have never seen any one do this and can't see any benefit accept in
making the developers life more complex as the stored procedures,
tables etc would need to be renamed to belong to the dbo group once
they were moved onto our production server. In addtion code calling
them would need to be modified after testing as we prefix our .Net
calling with the dbo prefix

eg command.CommandText = "dbo.[usp_UpdateSavedSearchId]"

Has any one followed this owner convention and are their any pros and
con's with it.

Jul 23 '05 #2
Hi Erick,

I have used that approach on a previous project and it does indeed have
the many problems that Mike has stated. In fact, I have seen a quite a
number of processes for managing changes to SQL code and all of them
had major downsides that could potentially leave a schema in an unknown
state i.e. something works in development and yet fails on the test
system even after the required changes have been made.

The only change management system I have used that works is the DB
Ghost Process. This uses a software tool called DB Ghost that enables
you to work with drop/create scripts in source control just like other
code. When the developers have made the required changes to the
'create' scripts DB Ghost is used to build a brand new schema (this
verifies that all the code still works) that is then used as the source
for a compare and upgrade of a target database. This leaves the data
intact on the target database and what it means is that the database
matches the code in source control. If you label/baseline the code in
source control before doing a build and upgrade then you end up with a
target database that COMPLETELY matches a defined set of source scripts
no more, no less.

This process scales really well as it doesn't matter how many
developers are updating the code or how many changes they make - you
still just perform a single build and upgrade using DB Ghost. There
are a lot of tools that can compare two databases but that doesn't give
you the full audit trail that you get with having the scripts under
source control.

Using this method each developer would have his/her own local database
thus also ensuring that no one else can accidentally damage part of the
schema whilst they are working on it.

You can find out more by visiting the website at <a
href="www.dbghost.com">www.dbghost.com</a>

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object.cs in rotor. What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't...
20
by: perseus | last post by:
I asked a question about the C++ FileSystem Interface of a program called BOOST. These people flooded me with stupid and idiotic messages about how irrelevant that question was. Beware of them. ...
16
by: StenKoll | last post by:
Help needed in order to create a register of stocks in a company. In accordance with local laws I need to give each individual share a number. I have accomplished this by establishing three tables...
0
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object class (Object.cs in rotor). What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What...
11
by: westplastic | last post by:
This one is driving me insane. The script works perfect on Firefox, but Internet Explorer keeps complaining about "Error Object Expected" and stuff like that. I've run it through Firefox's Java...
0
by: Thamzyne | last post by:
Hi guys Scenario: There are 4 db owners: wh1, wh2, wh3, wh4. I have created a stored proc for wh2 and it works. Problem: I want to make my stored proc wise enough to be able to see and...
0
by: fiona | last post by:
Reading, Berkshire, UK 05 June 2007 - Crainiate Software make details available of the release of Objecto Framework 2.0, an upgrade to their enterprise business component framework, designed to...
45
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hello. I'm trying to find another way to share an instance of an object with other classes. I started by passing the instance to the other class's constructor, like this: Friend Class...
2
by: AlarV | last post by:
I've created a class by using UML, and I have as objects Houses and Owners. I wanted an owner to have more than one houses, so I set navigable association and multiplicity 1...*. So in the class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.