Showing posts with label owner. Show all posts
Showing posts with label owner. Show all posts

Sunday, March 25, 2012

Difference between database owner and user who has db-owner?

What is difference between database owner and user in the users folder who
has db-owner?
Database owner has full access under the database. Also user who has db-
owner has full access under the database.
When both create a table, table owner is dbo.
Thanks in advance,
Do.
--
Message posted via http://www.sqlmonster.com> When both create a table, table owner is dbo.
No. A user who isn't dbo but is db_owner will now have dbo as owner of the object. This is indeed
the major (and possibly only) difference between being dbo and having the db_owner role.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Do Park via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:48a04eefb96840aea85cee6c4fd2f178@.SQLMonster.com...
> What is difference between database owner and user in the users folder who
> has db-owner?
> Database owner has full access under the database. Also user who has db-
> owner has full access under the database.
> When both create a table, table owner is dbo.
> Thanks in advance,
> Do.
> --
> Message posted via http://www.sqlmonster.com

Difference between database owner and user who has db-owner?

What is difference between database owner and user in the users folder who
has db-owner?
Database owner has full access under the database. Also user who has db-
owner has full access under the database.
When both create a table, table owner is dbo.
Thanks in advance,
Do.
Message posted via http://www.droptable.com> When both create a table, table owner is dbo.
No. A user who isn't dbo but is db_owner will now have dbo as owner of the o
bject. This is indeed
the major (and possibly only) difference between being dbo and having the db
_owner role.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Do Park via droptable.com" <forum@.droptable.com> wrote in message
news:48a04eefb96840aea85cee6c4fd2f178@.SQ
droptable.com...
> What is difference between database owner and user in the users folder who
> has db-owner?
> Database owner has full access under the database. Also user who has db-
> owner has full access under the database.
> When both create a table, table owner is dbo.
> Thanks in advance,
> Do.
> --
> Message posted via http://www.droptable.comsql

Difference between database owner and user who has db-owner?

What is difference between database owner and user in the users folder who
has db-owner?
Database owner has full access under the database. Also user who has db-
owner has full access under the database.
When both create a table, table owner is dbo.
Thanks in advance,
Do.
Message posted via http://www.sqlmonster.com
> When both create a table, table owner is dbo.
No. A user who isn't dbo but is db_owner will now have dbo as owner of the object. This is indeed
the major (and possibly only) difference between being dbo and having the db_owner role.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Do Park via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:48a04eefb96840aea85cee6c4fd2f178@.SQLMonster.c om...
> What is difference between database owner and user in the users folder who
> has db-owner?
> Database owner has full access under the database. Also user who has db-
> owner has full access under the database.
> When both create a table, table owner is dbo.
> Thanks in advance,
> Do.
> --
> Message posted via http://www.sqlmonster.com

Monday, March 19, 2012

Did anyone get this error on a backup job?!

Additional information --> Job Owner: SA

In my DB Backup JOB my first step is to map a network path like this
NET USE Z:\\SERVER2\DADOS /user somebody 234567

I got this Error --> Executed as user: MYSERVER\SYSTEM. System error 1312 has occurred. A specified logon session does not exist. It may already have been terminated. Process Exit Code 2. The step failed.

In step 2 i copy all my *.bak files from yesterday to the drive mapped on dir BACKUP in SERVER2.

COPY "C:\BACKUP\*.BAK" "Z:\BACKUP\"

I got this Error --> Executed as user: MYSERVER\SYSTEM. ...annot find the path specified. C:\BACKUP\db_200511030200.BAK The system cannot find the path specified. C:\BACKUP\CFG_db_200511030225.BAK The system cannot find the path specified. C:\BACKUP\STRUCTAL_db_200511030225.BAK The system cannot find the path specified. C:\BACKUP\STRUCTEN_db_200511030225.BAK The system cannot find the path specified.

step 3 i delete all files in MYSERVER C:\BACKUP\*.BAK

This step is OK

step 4 i execute my database maintenance plan

the .bak file are generated and put in "C:\BACKUPS" in MYSERVER

This step is OK

Thanks for all help.First you need to resolve the 1312 error. It may be caused by some sort of delay that occurred between a network connection request initiated by NET USE and the actuaql attempt to map the drive. While on the topic, why do you need to map the drive to begin with?

Second, you need to make sure that the step is executed successfully before moving on. You need to either check for errorlevel or take the step out of the batch and put it by itself into a separate step within the job, and then allow continuation OnSuccess.

Tuesday, February 14, 2012

Determining Object Ownership

one way... to get the owner of the AUTHORS table...
Bruce
SELECT name from sysusers
where uid = OBJECTPROPERTY(OBJECT_ID
('authors'),'OwnerID')

>--Original Message--
>How do I determine the ownership of an object? (i.e.
table)
>.
>
Another way... Open up EM and look at the "owner" column...
Thanks,
Mike C
"Bruce de Freitas" <bruce@.defreitas.com> wrote in message
news:39e401c51f64$0ea67db0$a401280a@.phx.gbl...[vbcol=seagreen]
> another way...
>
> select TABLE_SCHEMA as 'owner'
> from information_schema.tables
> where TABLE_NAME = 'authors'
>
>

Determining Object Ownership

one way... to get the owner of the AUTHORS table...
Bruce
SELECT name from sysusers
where uid = OBJECTPROPERTY(OBJECT_ID
('authors'),'OwnerID')

>--Original Message--
>How do I determine the ownership of an object? (i.e.
table)
>.
>Another way... Open up EM and look at the "owner" column...
Thanks,
Mike C
"Bruce de Freitas" <bruce@.defreitas.com> wrote in message
news:39e401c51f64$0ea67db0$a401280a@.phx.gbl...[vbcol=seagreen]
> another way...
>
> select TABLE_SCHEMA as 'owner'
> from information_schema.tables
> where TABLE_NAME = 'authors'
>
>