Our Blog

How to read Snowflake data from SQL Server
To read data from a Snowflake database into SQL Server, you can use the following methods: Use the SQL Server Integration Services (SSIS) to create a package that transfers data from Snowflake to SQL Server. Use the Snowflake Data Provider for SQL Server to create a...

How to prevent SysAdmins from accessing specific tables in SQL Server
There are several ways to prevent sysadmins from reading data from specific databases in SQL Server, but one common approach is to use database roles and permissions. Create a new role: Create a new role, such as "db_restricted_reader" with SELECT permissions on the...

How to import JSON file into SQL Server table
There are several ways to import a JSON file into a SQL Server table, including using built-in functions, using third-party tools, or writing a custom script. Here is an example of how to import a JSON file into a SQL Server table using the built-in OPENJSON function:...

How to hide a stored procedure in a stored procedure in SQL Server
There are a few ways to hide a stored procedure in a stored procedure in SQL Server, but one common approach is to use dynamic SQL. Dynamic SQL allows you to generate and execute T-SQL statements at runtime, which can be used to hide the underlying stored procedure....

How to export SQL Server data to JSON file
There are several ways to export SQL Server data into a JSON file, including using built-in functions, using third-party tools, or writing a custom script. Here is an example of how to export SQL Server data into a JSON file using the built-in FOR JSON function:...

How to determine Included non-clustered indexes in SQL Server
Included indexes are a type of non-clustered index in SQL Server that include columns that are not part of the index key. These included columns allow the index to cover more queries and reduce the need for additional index lookups. Here are a few ways to determine...

How to compare multiple tables in SQL Server
In SQL Server, you can use the sp_help and sp_columns system stored procedures to compare the table structure of multiple tables. sp_help: The sp_help stored procedure returns information about the table, such as the name, owner, and columns. EXEC sp_help 'table1'...

Hidden Gems for Developers in SQL Server
SQL Server has many features and functionalities that may not be well-known or widely used by many. Here are a few hidden gems in SQL Server that you may find useful: The OUTPUT clause: This clause allows you to return the values of the inserted, deleted, or updated...

Encrypting Table values in SQL Server
There are several methods to encrypt table values in SQL Server. One of the most common methods is to use built-in encryption functions such as ENCRYPTBYPASSPHRASE and DECRYPTBYPASSPHRASE. Here's an example of how to encrypt the values in a table column called...

Encrypting Data at Rest with TDE in SQL Server
Transparent Data Encryption (TDE) is a feature in SQL Server that allows you to encrypt the entire database, including the data and log files, to protect sensitive data from unauthorized access. Here's an example of how to implement TDE at the database level using the...