TSQL Commands

Important & Handy TSQL Commands

Space Management TSQL Commands 1)sp_spaceused2)dbcc sqlperf(logspace)3)xp_fixeddrives Information TSQL Commands 1) sp_helpdb2) select db_id(‘DBName’)3) select db_name(DBID)4) select * from sys.dm_exec_sessions, dm_exec_connections5) select * from sys.databases6) select * from sys.database_files Monitoring TSQL Commands 1) sp_who22) select * from sys.dm_exec_requests where session_id>503) DBCC…

Read More →
SQL Server Restoration Tutorial

SQL Server Restoration Tutorial

Restoration is a process of using backups to recover the exist database (or) to create a new database in another server. Situations for Restoration Planned restoration, when we have planned activities like migration, upgradation, database refresh from prod to other…

Read More →

SQL Server Backups

Backup means, saving the exact copy of the current version of database in some other location. Situations where backup can use Hardware failure includes operating systems CPU memory, network card failures. Software failure includes operating system failures database server failures.…

Read More →

SQL Server Databases

Database:  Database is a container which stores data and data objects. It manages data and allows fast storage and retrieval of that data. Types of Databases in SQL Server: There are 2 types of databases, 1. System Databases: System databases…

Read More →