How to do an INSERT Pass-Through Query in SQL Server

In SQL Server, you can use OPENQUERY to execute a pass-through query on a linked server.

OPENQUERY is commonly referenced in the FROM clause of a query as if it were a table, but it can also be referenced as the target table of an INSERT, UPDATE, or DELETE statement.

This article presents an example of using OPENQUERY to do an INSERT pass-through query.

Read more

3 Ways to Sort Documents in MongoDB

MongoDB provides a few ways to sort documents in a particular order. Each of these allow us to order the documents in ascending or descending order.

There’s also the option to order the results of a $text search – sorting by the computed textScore metadata in descending order.

Here are 3 ways to sort documents in MongoDB.

Read more