You can export linked servers as SQL using the following steps: Continue reading Export Multiple Linked Servers
Tag: Databases
Export All SQL Agent Jobs
To export all SQL Agent jobs together as SQL, you can use the Script Job as option in SQL Server Management Studio. Here are the steps to do this: Continue reading Export All SQL Agent Jobs
Coalesce Function in MSSQL
COALESCE is a built-in function in Microsoft SQL Server that returns the first non-null expression among its arguments. It takes one or more expressions as arguments and returns the value of the first expression that is not NULL. If all the expressions are NULL, it returns NULL. Continue reading Coalesce Function in MSSQL
Pivot Function in MSSQL
In SQL Server, the PIVOT function is used to transform rows into columns. The PIVOT function is a T-SQL operator that rotates a table-valued expression by turning the unique values from one column in the expression into multiple columns in the output, effectively creating a cross-tabulation of the data. Here’s an example to help illustrate the concept: Continue reading Pivot Function in MSSQL
SRING_AGG and STUFF functions in MS SQL
Both STRING_AGG
and STUFF
are string functions in Microsoft SQL Server that are used to manipulate strings. Continue reading SRING_AGG and STUFF functions in MS SQL
Triggers in MSSQL
A trigger is a special type of stored procedure in Microsoft SQL Server that automatically executes when an event occurs, such as an INSERT, UPDATE, or DELETE statement. Triggers can be used to enforce business rules, maintain data integrity, or perform actions automatically in response to changes in the data. Continue reading Triggers in MSSQL
SQL Merge Statement & UPSERT Operation
The MERGE
statement in Microsoft SQL Server allows you to perform multiple actions (such as insert, update, or delete) in a single statement based on the results of a join between a target table and a source table. Continue reading SQL Merge Statement & UPSERT Operation
CTE (Common Table Expression) in SQL
CTE (Common Table Expression) is a feature in SQL that allows you to define a temporary result set that can be used within a SELECT, INSERT, UPDATE, or DELETE statement. A CTE is similar to a derived table or subquery, but has some advantages over those techniques, including improved readability, reusability, and optimization opportunities. Continue reading CTE (Common Table Expression) in SQL
SQL Window Functions
SQL Window Functions are a feature of SQL that allow you to perform calculations across rows within a set of rows, called a “window”. The window is defined using the “OVER” clause and can be used to perform operations such as ranking, cumulative sums, running totals, and more. These functions provide a more concise and efficient way to perform calculations that would otherwise require complex subqueries or self-joins.
How to access local MongoDB server from a Docker Environment
It is actually pretty easy. In my case I needed to reach from Laravel Sail to my local MongoDB Database. Continue reading How to access local MongoDB server from a Docker Environment
What is Riak?
Riak is a distributed NoSQL database that is designed to provide high availability, scalability, and fault tolerance. It is an open-source software that can be used to store and retrieve large amounts of data in a distributed environment.
What is PostgreSQL?
PostgreSQL is a free and open-source relational database management system (RDBMS) that is known for its reliability, feature-richness, and performance. It is often referred to as simply “Postgres.” It was developed by the PostgreSQL Global Development Group in 1996 as a successor to the Ingres project.