If user is owning any SQL Objects, can we drop that user
Answer / Krishna Murari
To drop a user in SQL Server who owns SQL objects, follow these steps:
n 1. Take Ownership of Objects: First, transfer ownership of all the objects owned by the user to another user (preferably sa or dbo) using the T-SQL command ALTER OWNER.
n 2. Drop User: After successfully taking ownership of all objects, you can drop the problematic user using the DROP USER command.
| Is This Answer Correct ? | 0 Yes | 0 No |
Name the different type of indexes in sql?
Is the order of columns in the set clause important in ms sql server?
In join, which clause in not used?
How to execute stored procedure and set temp table in sql server?
What security features are available for stored procedure?
can an automatic recovery be initiated by a user? : Sql server administration
What is enhanced database mirroring in sql server 2008?
Write the SQL query to drop, truncate and delete table.
1 Answers HPCL, Hughes Systique Corporation, Ittiam Systems,
What is database architecture? : SQL Server Architecture
What are the steps you must follow to hide sql server instances?
What happens if null values are involved in datetime operations?
what is a deadlock? : Sql server database administration
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)