Sherbaz

SherLabs Engineering. Knowledgebase on Tech & Hobbies

Skip to content
Menu
  • Home
  • TV
  • Top Questions
    • Most Wanted

Category: SQL Server

SQL ServerPosted onMarch 16, 2012March 16, 2012

Read Disk Read/ Write for all databases in an instance and Sort them

Below Query will help you read live file level Disk read and write information. WIll behandy for performance tuning capacity planning. select db.name,files.filename,* from sys.dm_io_virtual_file_stats(NULL,…

Read More
Database corruptionPosted onMarch 7, 2012March 21, 2012

Error: Transaction log file got damaged or corrupted

Once we had an issue in our environment. We had a maintenance activity on the Database server during a weekend and the server was shutdown…

Read More
SQL ServerPosted onJanuary 26, 2012August 5, 2015

Access Denied error while attaching the database files moved from Windows 2003 server to the new SQL instance on Windows 2008

Issue It’s quite common that we use detach-attach method to migrated SQL server databases from Windows Server 2000 or 2003 to Windows server 2008. During…

Read More
Reporting ServicesPosted onJanuary 23, 2012March 21, 2012

Error: Unable to access Reports via web browser soon after installing reporting Services

Issue Soon after installing reporting services for my SQL server 2012 on Windows 7, I got the error “User ‘DOMAIN\username’ does not have required permissions. Verify that sufficient…

Read More
Interview QuestionsPosted onJanuary 7, 2012December 31, 2013

Interview Questions: SQL Server DBA

 Questions Explain SQL Server Failover Clustering? How do we check index Fragmentation? TSQL syntax for Index rebuild and reorg. Difference between the two. How users…

Read More
SQL ServerPosted onDecember 20, 2011May 22, 2012

Automatically Rebuild or Reorg index based on fragmentation

The Attached SQL Query can be safely used for rebuilding or reorganizing all indexes in a particular database based on the fragmentation level. Note: The…

Read More
SQL ServerPosted onNovember 18, 2011January 7, 2012

Executing CHECKDB on all user databases via TSQL

Run below Query. And once the query executes completely, go through the SQL Server Error log to see the results. declare databases cursor for select…

Read More
SQL ServerPosted onNovember 14, 2011January 7, 2012

Read and filter SQL server error logs using TSQL

Command: xp_readerrorlog parameter 1, parameter 2, parameter 3, parameter 4 Parameter 1: To specify the errorlog number. Starts from 0. 0 = current, 1 =…

Read More
SecurityPosted onOctober 7, 2011June 1, 2012

Check SQL Authentication Login Account Password

Did you come across any situation where you wanted to make sure that the password you set for a SQL account is what you really…

Read More
SecurityPosted onOctober 4, 2011March 21, 2012

Error while executing a sql job “The EXECUTE permission was denied on the object ‘sp_start_job’,database ‘msdb’,schema’dbo’.

SOLUTION: 1) Go to MSDB– Security –Users — UserName — User Name Properties — Assigned the ‘TargetServerRole’ in msdb 2)     Run the query select pr.name,…

Read More

Posts pagination

Previous Page Page 1 … Page 3 Page 4 Page 5 Next Page

Categories

  • MongoDB (1)
  • PHP (2)
  • Products (2)
  • Puzzles (1)
    • Rubik's Cube (1)
  • Random Posts (1)
  • Software Development (1)
  • SQL Server (48)
    • Always-on (1)
    • Backup & Restore (1)
    • Data purge (2)
    • Database corruption (1)
    • Database Mail (1)
    • Failover Cluster (2)
    • Index Maintenance (5)
    • Interview Questions (2)
    • Partitioning (1)
    • Performance Tuning (10)
    • Replication (1)
    • Reporting Services (1)
    • Security (3)
    • Tools (1)
  • Unix (1)
  • Wintel (8)
    • AD (1)
    • Remote (1)
    • VMware (1)
    • Windows 2012 (2)
  • Wordpress (1)

Archives

Tags

active directory Alerting Automation batch operation BigFix BigFix action script bulk cascade CHECKDB Cluster connected table Database Attach Database Health Check Database Mail delete dependency deprecated Failover Cluster fixlet foreign keys gMSA Index Defragmentation Index Maintenance Index Rebuild Index Reorganize linux LVM Migration Monitoring Performance Tuning php powershell purge Puzzle Rubik's Cube Security sp_depends SQL Server SQL Server 2012 SQL Server 2014 SQL Server Licensing Storage Tricks ubuntu update

Recent Posts

  • BigFix Action Script for SQL Server and Powershell
  • Data purge on Connected Tables – Part 2 (With Filter)
  • Generate DB Attach Script in TSQL
  • Data purge on Foreign key connected tables
  • SQL Server Failover Cluster with Managed Service Account (MSA) – Step by step walk-through and troubleshooting until successful

Pages

  • Top Questions
    • Most Wanted
  • TV

Recent Comments

  • Publication properties: Immediate_Sync and allow_anonymous – Database knowledge (MS SQL Server…) on Replication – Adding New Article without Generating Snapshot – By Nideesh
  • dileep on Auto restore multiple databases in One shot using powershell
  • dileep on Auto restore multiple databases in One shot using powershell
  • Sherbaz on Auto restore multiple databases in One shot using powershell
  • dileep on Auto restore multiple databases in One shot using powershell

My Web Works

  • Zonik India Pvt Ltd
  • SplitExpense.in Free Online Easy expense share + track tool ! This is a smartphone version and its desktop edition is available at https://splitexpense.in/desktop

Categories

March 2026
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031  
« Sep    
© Copyright 2026 – Sherbaz
Allium Theme by TemplateLens ⋅ Powered by WordPress
 

Loading Comments...
 

You must be logged in to post a comment.