Skip to content

Our Tech Ideas

Great minds discuss ideas!

List of jobs associated with database in SQL Server

List of jobs associated with database in SQL Server

30 September 2019 By OTI Leave a comment MSSQL

Introduction As a Database Administrator (DBA), my recent task involved listing all the jobs running in a production SQL Server environment, along with their respective databases. With over 200+ jobs and 20+ online databases, I needed an efficient solution to…

Read More →
Find Database size, File size & Table size in SQL Server

Find Database size in SQL Server

30 September 2019 By OTI 1 Comment MSSQL

Introduction In this article, we will try to pull all sizes from SQL server. How to find Database Size in SQL Server? How to Get size of all tables in the SQL Server database? We will use different SQL Queries…

Read More →

SQL Instance Last restart date and time in SQL Server

29 September 2019 By Soyeluddin Biswas Leave a comment MSSQL

Introduction: When your SQL instance was last restarted? I understand it is very simple script but we often forget  simple scripts. Hence I thought to write this simple script and also we can use GUI to find the same. Both…

Read More →

Database restore history in SQL Server

27 September 2019 By Soyeluddin Biswas 2 Comments MSSQL

Introduction This script will help you to get the restore history for all the databases. If you need to know the restore history only for a single database then please use the WHERE CLAUSE. Script — ============================ — Owner: SOYELUDDIN…

Read More →

How to create database user on secondary node if DB is in readonly mode in SQL Server?

27 September 2019 By OTI 2 Comments MSSQL

Scenario How to provide ‘db_dataread’ database role to a SQL login when the database is in AlwaysOn & secondary node DB is in readonly mode? Introduction To provide ‘db_dataread’ database role to a SQL login when the database is in…

Read More →

Exploring Database File Information with T-SQL

25 September 2019 By OTI Leave a comment MSSQL

Introduction In the world of database management, having a clear understanding of the file information is crucial for optimizing performance and storage. In this technical blog post, we will dive into T-SQL and explore how to retrieve essential details about…

Read More →

Find Physical file location for all the databases in SQL Server

25 September 2019 By Soyeluddin Biswas Leave a comment MSSQL

Introduction Very often DBAs need to find the location of the physical file (MDF, LDF & NDF) of a database. Simply we can obtain the output by executing the below query. Run the script to get the SQL Server database…

Read More →
Set Auto growth for all the databases wit T-SQL

Set Auto growth for all the databases wit T-SQL

24 September 2019 By Soyeluddin Biswas Leave a comment MSSQL

Introduction Managing the growth of database files is an essential aspect of maintaining a healthy SQL Server environment. As databases grow over time, it becomes crucial to configure appropriate growth settings to ensure optimal performance and prevent storage-related issues. In…

Read More →
Find database growth size in SQL Server

Find database growth size and store in a table in SQL Server

24 September 2019 By OTI 2 Comments MSSQL

Introduction Managing database sizes is a crucial task for database administrators. Monitoring database growth and tracking size changes over time are essential for capacity planning and performance optimization. In this blog post, we will explore an automated solution using T-SQL…

Read More →

Find disk space using Stored procedure or TSQL

24 September 2019 By OTI 8 Comments MSSQL

Introduction xp_fixeddrives only provide how much disk space is free on each drive but not the maximum space of the drive & percentage of free space. If you need to find out Drive Space for SQL server with Drive Space, Free…

Read More →

Posts pagination

← Previous 1 … 17 18 19 20 21 22 Next →

Recent Posts

  • SQL Server Database Stuck in Recovery Pending After VM Reboot – A Real-World Root Cause and Fix 10 April 2026
  • SQL Server Out of Memory (OOM) Error: Causes, Fixes 8 April 2026
  • Future-Proof Your SQL Server DBA Career in 2026 8 April 2026
  • Automating SQL Server Index Maintenance Using Dynamic T‑SQL 24 March 2026
  • How to Find Private Database Mail Profiles Associated with Logins in SQL Server 4 March 2026

Categories

Archives

Our Tech Ideas

Welcome to OurTechIdeas.com, your go-to destination for insightful and practical SQL Server DBA-related technology content. Based in the vibrant city of Bangalore, India, we are a team of passionate learners dedicated to sharing our knowledge and experiences with the tech community.

© 2026 Our Tech Ideas. All rights reserved.