Browse by Tags

All Tags » tsql » principal
  • Get basic Database Mirroring information- principal or mirror

    SELECT DB_NAME(database_id) AS 'DatabaseName' , mirroring_role_desc , mirroring_safety_level_desc , mirroring_state_desc , mirroring_safety_sequence , mirroring_role_sequence , mirroring_partner_instance , mirroring_witness_name , mirroring_witness_state_desc , mirroring_failover_lsn FROM sys.database_mirroring WHERE mirroring_guid IS NOT NULL; ...
    Posted to SQL Server Aggregator (Weblog) by Anonymous on August 20, 2007
  • Control metada visibility using few 'simple' statements

    You may be aware that a user in a SQL Server 2005 database can only see metadata that the user either owns or on which the user has been granted some permission. A default policy enhanced as compared to how a DBA can control the security access to the database-table level. A better way to prevent unwanted users with minimal privileges from viewing ...
    Posted to SQL Server Aggregator (Weblog) by Anonymous on August 9, 2007