ArcGIS Pro Error drop schema #186

Open
opened 2 years ago by rbsetiawan · 0 comments
Owner

Error drop shema

image

Drop schema https://stackoverflow.com/questions/1929455/error-trying-to-delete-database-user-account-schema

try :

  • drop from ssms
    image

error message output :

TITLE: Microsoft SQL Server Management Studio
------------------------------

Drop failed for Schema 'tesvidya_user3'.  (Microsoft.SqlServer.Smo)

For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=16.100.37971.0&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop+Schema&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Cannot drop schema 'tesvidya_user3' because it is being referenced by object 'i28_get_ids'. (Microsoft SQL Server, Error: 3729)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=14.00.3456&EvtSrc=MSSQLServer&EvtID=3729&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

  • drop shema name from command:

    • select shema where shema_id tesvidya_user3
    SELECT * FROM sys.objects 
    where schema_id = SCHEMA_ID('tesvidya_user3')
    --AND name = 'i28_get_ids' 
    

    image

    • delete shema name i28_get_ids
    DROP <object type> ext_owner.getroles;
    

    OR delete objects from store procedure i28_get_ids
    image

    or move owner chema

    ALTER SCHEMA <some other schema> TRANSFER ext_owner.getroles;
    
    • delete shema name tesvidya_user3
    DROP SHEMA tesvidya_user3
    

    image

Error drop shema ![image](/attachments/fe6e3d64-49db-4127-8a5b-ef4d11e33767) ### Drop schema https://stackoverflow.com/questions/1929455/error-trying-to-delete-database-user-account-schema try : - drop from ssms ![image](/attachments/a681fbe6-d9a1-43c5-83e2-e1b909cd7917) error message output : ``` TITLE: Microsoft SQL Server Management Studio ------------------------------ Drop failed for Schema 'tesvidya_user3'. (Microsoft.SqlServer.Smo) For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=16.100.37971.0&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop+Schema&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ Cannot drop schema 'tesvidya_user3' because it is being referenced by object 'i28_get_ids'. (Microsoft SQL Server, Error: 3729) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=14.00.3456&EvtSrc=MSSQLServer&EvtID=3729&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------ ``` - drop shema name from command: - select shema where shema_id `tesvidya_user3` ``` SELECT * FROM sys.objects where schema_id = SCHEMA_ID('tesvidya_user3') --AND name = 'i28_get_ids' ``` ![image](/attachments/81393e7e-dee5-45a7-8765-191a07409b74) - delete shema name `i28_get_ids` ``` DROP <object type> ext_owner.getroles; ``` OR delete objects from store procedure `i28_get_ids` ![image](/attachments/83078c15-e80d-4c8a-929a-48b44b64a86c) or move owner chema ``` ALTER SCHEMA <some other schema> TRANSFER ext_owner.getroles; ``` - delete shema name `tesvidya_user3` ``` DROP SHEMA tesvidya_user3 ``` ![image](/attachments/32605015-627d-4918-96c9-d8cd9d7b40e3)
rbsetiawan added the
RND
ArcGIS Pro
ArcGIS Desktop
SQL Server
labels 2 years ago
rbsetiawan changed title from ArcGIS Pro Error Schema / drop schema to ArcGIS Pro Error drop schema 2 years ago
Sign in to join this conversation.
Loading…
There is no content yet.