Problem: How to change the ownership of SQL Server or Database Owner
permission from one account to other.
Solution:
AUTHORIZATION
ALTER AUTHORIZATION can
be used to change the ownership of any entity that has an owner. Ownership of
database-contained entities can be transferred to any database-level principal.
Ownership of server-level...
Sunday, April 30, 2017
Saturday, April 29, 2017
Transfer Schema Objects
Mahesh Sambu
4/29/2017 05:30:00 PM
Schema, Transfer
No comments
Problem: How to transfer objects from an old schema to a new schema with
in the database.
Solution: ALTER
SCHEMA TRANSFER
This transfers the specific objects in
between schemas.
Syntax:
ALTER SCHEMA schema_name
TRANSFER [ <entity_type> :: ] securable_name
[;]
<entity_type> ::= ...
Friday, April 28, 2017
How to Configure Database Mirroring?
Mahesh Sambu
4/28/2017 09:00:00 AM
Database mirroring, DBA, High Availability
No comments

Problem: How to
Configure Database Mirroring?
Solution: Setting
Up Database Mirroring (SQL Server)
Database mirroring is a solution for
increasing the availability of a SQL Server database. Mirroring is implemented
on a per-database...
Thursday, April 27, 2017
Optimize query plan memory used for Ad-hoc Queries
Mahesh Sambu
4/27/2017 02:36:00 PM
Optimize, Performance gains
No comments

Problem: An
application executes a large volume of dynamic queries. How to reduce the
amount of memory used for cached query plans?
Solution:
Optimize for Ad Hoc Workload, Starting
from SQL Server 2008
A Query when gets executed...
Wednesday, April 26, 2017
Detach and Attach Database.
Mahesh Sambu
4/26/2017 11:50:00 PM
Attach, Database, DBA, Detach
No comments

Problem: How to detach and attach a database, where will this be useful
process?
Solution: Database Detach and Attach (SQL Server)
The data and transaction
log files of a database can be detached and then reattached to the same or
another...