Detach And Attach Database In SQL Server
Simple method to detach and attach database in SQL Server. T-SQL method and SSMS method to detach an database and attach it back.
Simple method to detach and attach database in SQL Server. T-SQL method and SSMS method to detach an database and attach it back.
How to bring back an SQL Server database online? Simple methods for bringing database online state using transact-SQL or SSMS.
How to take an SQL Server database offline? Simple methods to bring a MSSQL database to offline state using transact-SQL or management studio.
Simple method to split delimited strings in newer and older versions of SQL Server. Using STRING_SPLIT() in SQL Server 2016 and higher and Few lines of code to create a function which splits the strings with delimiters on older versions.
Easy way to simulating deadlocks and blocks In SQL Server. You may need to simulate blocked processes and deadlocks for testing purpose.
Finding the deadlocks and blocked processes using extended events In SQL Server. Collecting deadlocks using extended events
How to find long running stored procedures In SQL Server? Step by step illustration to find slow running SQL Server stored procedure.
What Are Extended Events In SQL Server? What are the advantages of extended events over profiler? How to use SQL Server XEvents?
How to Find Last Few Executed Queries in SQL Server? Simple methods to find the recently executed sql statements using DMVs (Dynamic Management Views).
How to get the row count of all tables In SQL Server database? Simple method to get the list of all tables in a database along with the number of rows.
Find the user defined function containing text or specific table name or specific column name? Here is the simple transact SQL statements to find the UDF
How to search and find user defined function (UDF) by it’s name or partial name, or even with some text in the function’s source code.
How to search and find all user defined functions or UDF In SQL Server? Several methods to find all the user defined functions in a database.
Difference between Temp Table, Table Variable and CTE in SQL Server. Temp Table vs Table Variable vs CTE and their usage.
Difference between function and stored procedure in SQL Server. Here you have a comparison table on Function vs Stored Procedure.
Encrypting a string using hash code algorithm in sql server using the HASHBYPES function. Hash Code Encryption using MD2, MD4, MD5, SHA, SHA1, SHA 256 & 512
Finding Indexes On A Table In SQL Server: There are several ways to list the indexes on a table. We’ll see few easy methods to find indexes on a table
Easy method to find the size of tables in an SQL Server database. Get the size of all the tables in a database using SSMS standard report and queries.
Combine multiple rows into one string in SQL Server. Simple query in SQL Server to concatenate multiple rows Into single string.
Shrink transaction log file In SQL Server database without altering the database files . I.e. shrinking the ldf file without affecting the mdf file.