How to find the Service Account of SQL Server Service

Dynamic management views are very much useful when it comes to troubleshooting or collecting server and database related configuration information. The sys.dm_server_services provides the information about the service name and…

Read more »

Data file not deleted from filesystem even after DROP DATABASE

When a database is dropped using the DROP DATABASE command, you might have noticed the command completed successfully and of course, the database is dropped but you could still see…

Read more »

DATALENGTH vs LEN function in SQL

DATALENGTH function returns the size used by a column or an expression whereas the LEN function returns the number of characters. Let’s explore with few examples The DATALENGTH function returns…

Read more »

How to find when was SQL Server restarted?

There are few ways to find out when the SQL Server was restarted, here I am going to use DMV (sys.dm_os_sys_info) to find the SQL Server restarted time.

Read more »