Foros del Web » Programación para mayores de 30 ;) » Bases de Datos General »

Sql Server

Estas en el tema de Sql Server en el foro de Bases de Datos General en Foros del Web. Amigos , como puedo cambiar PROPIETARIO EN TABLAS DE SQL SERVER 7...
  #1 (permalink)  
Antiguo 12/05/2004, 17:34
 
Fecha de Ingreso: enero-2002
Ubicación: Chile
Mensajes: 245
Antigüedad: 22 años, 3 meses
Puntos: 0
Sql Server

Amigos , como puedo cambiar PROPIETARIO EN TABLAS DE SQL SERVER 7
  #2 (permalink)  
Antiguo 12/05/2004, 19:14
Avatar de Avelar  
Fecha de Ingreso: noviembre-2002
Ubicación: Ensenada, Baja California, México
Mensajes: 673
Antigüedad: 21 años, 5 meses
Puntos: 1
En SQL_2000 es con sp_changeobjectowner pero como ahorita no tengo a la mano el SQL 7 no se si en él sirva.

En la documentación del SQL_2000 viene lo siguiente sobre el sp mencionado:
Cita:
sp_changeobjectowner
Changes the owner of an object in the current database.

Syntax
sp_changeobjectowner [ @objname = ] 'object' , [ @newowner = ] 'owner'

Arguments
[@objname =] 'object'

Is the name of an existing table, view, or stored procedure in the current database. object is nvarchar(517), with no default. object can be qualified with the existing object owner, in the form existing_owner.object.

[@newowner =] 'owner'

Is the name of the security account that will be the new owner of the object. owner is sysname, with no default. owner must be a valid Microsoft® SQL Server™ user or role, or Microsoft Windows NT® user or group in the current database. When specifying Windows NT users or groups, specify the name the Windows NT user or group is known by in the database (added using sp_grantdbaccess).

Return Code Values
0 (success) or 1 (failure)
__________________
Ariel Avelar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:41.