Showing posts with label Always Encrypted. Show all posts
Showing posts with label Always Encrypted. Show all posts

Saturday, February 1, 2025

Encryption and connecting to SQL Server using SSMS

 This post is describes connecting to SQL Server 2022 using the SQL Server Management Studio and the encryption of connection.

For installing SQL Server 2022 and Microsoft SQL Server Management Studio go here[https://hodentekmsss.blogspot.com/2024/09/installing-sql-server-2022-on-laptop.html],here [https://hodentekmsss.blogspot.com/2024/09/customized-installing-sql-server-2022.html] and here[https://hodentekmsss.blogspot.com/2025/01/install-latest-version-of-sql-server.html].

This post assumes you completed the above two tasks and explores the SQL Server 2022.

Type SQL Server Management Studio App in the search box and click the app in the Search's pop-up.

You should be seeing this image with the Studio interface in the back of the Connect to Server window.

The Server Type:    Database Engine

The Server  Name: Computer name/SQL Server Instance name

Authentication:      Windows Authentication

User name: greyed Computer Name/Computer admin name

These are all the choices you made during installation. Refer to the earlier links in this post.

Connection Security: Early versions did not have this Encryption in this screen and it has three options:

1. Mandatory

2. Optional

3. Strict (SQL Server 2022 and Azure SQL)

This is followed by a checkbox to trust the Server Certificate. Place check mark here and click Connect.

This opens up the Object Explorer, the navigation hub of the SQL Server Management Studio App. 


In earlier versions you would have come across Always Encrypted feature. This feature ensures that sensitive data is always encrypted, even when it is being processed by the SQL Server. It uses client-side encryption to protect data before it is sent to the server, ensuring that the data remains encrypted throughout its lifecycle. 

Mandatory Encryption: This option ensures that the connection to the SQL Server is always encrypted. It uses Transport Layer Security (TLS) to encrypt the data transmitted between the client and the server. This is the default setting in SSMS 20 and later versions.

Optional Encryption: With this option, the connection can be encrypted if the server supports it, but it is not required. If the server does not support encryption, the connection will proceed without encryption. Note: This means that all features of the server can still be accessed, but the data transmitted between the client and the server will not be encrypted, potentially exposing it to security risks.

Strict Encryption: This option is available in SQL Server 2022 and Azure SQL. It enforces the highest level of encryption and does not allow the connection to proceed if the server does not support encryption. This ensures that the connection is always secure.

These encryption options are related to SQL Server encryption in the following ways:

Transport Layer Security (TLS): All three options use TLS to encrypt the data transmitted between the client and the server. TLS is a widely used protocol for securing data in transit and is supported by SQL Server.

Encryption Hierarchy: SQL Server uses a hierarchical encryption and key management infrastructure to protect sensitive data. This includes the use of encryption keys, certificates, and algorithms to secure data at rest and in transit.

The encryption options in SQL Server Management Studio (SSMS) have evolved over time. The "Always Encrypted" feature, which provides client-side encryption to protect sensitive data, was introduced in SQL Server 2016 and became available in SSMS starting with the October 2015 preview version (13.0.700.242) . This feature allows users to encrypt data in their databases without the database system having access to the encryption keys, ensuring that sensitive data remains protected even if the database is compromised.




wyatt from atlas
wyatt from atlas

Mandatory Encryption: This option ensures that the connection to the SQL Server is always encrypted. It uses Transport Layer Security (TLS) to encrypt the data transmitted between the client and the server. This is the default setting in SSMS 20 and later versions.


Optional Encryption: With this option, the connection can be encrypted if the server supports it, but it is not required. If the server does not support encryption, the connection will proceed without encryption. Note: This means that all features of the server can still be accessed, but the data transmitted between the client and the server will not be encrypted, potentially exposing it to security risks.


Strict Encryption: This option is available in SQL Server 2022 and Azure SQL. It enforces the highest level of encryption and does not allow the connection to proceed if the server does not support encryption. This ensures that the connection is always secure.


These encryption options are related to SQL Server encryption in the following ways:


Transport Layer Security (TLS): All three options use TLS to encrypt the data transmitted between the client and the server. TLS is a widely used protocol for securing data in transit and is supported by SQL Server.


Encryption Hierarchy: SQL Server uses a hierarchical encryption and key management infrastructure to protect sensitive data. This includes the use of encryption keys, certificates, and algorithms to secure data at rest and in transit.


The encryption options in SQL Server Management Studio (SSMS) have evolved over time. The "Always Encrypted" feature, which provides client-side encryption to protect sensitive data, was introduced in SQL Server 2016 and became available in SSMS starting with the October 2015 preview version (13.0.700.242) . This feature allows users to encrypt data in their databases without the database system having access to the encryption keys, ensuring that sensitive data remains protected even if the database is compromised.


Tuesday, May 29, 2018

Things new in SQL Server 2016

In SQL Server 2016,

Configure multiple TempDB database files during Installation and set up.

The Query Store (new) stored texts, execution plans and performance metrics with the database. You have access to its dashboard related to query performance.

[image]

Availability of Temporal Tables (history) which records all data changes.

Built-in JSON Support(new). You can import/export, save and parse in JSON.

Polybase(new) query engine integrated SQL Server with external data in Hadoop or Azure Blob storage. Import/export and executing queries all possible.

Stretch Database(new) lets you dynamically, securely archive data from local SQL Server Database to an Azure cloud SQL database. querying is automatic both local and remote data by linked databases.

In-memory OLTP:
Now supports FOREIGN KEY, UNIQUE and CHECK constraints, and native compiled stored procedures OR, NOT, SELECT DISTINCT, OUTER JOIN, and subqueries in SELECT.
Supports tables up to 2TB (up from 256GB).
Has column store index enhancements for sorting and Always On Availability Group support.

New security features:
Always Encrypted: When enabled, only the application that has the encryption key can access the encrypted sensitive data in the SQL Server 2016 database. The key is never passed to SQL Server.
Dynamic Data Masking: If specified in the table definition, masked data is hidden from most users, and only users with UNMASK permission can see the complete data.
https://hodentekmsss.blogspot.com/2018/05/data-masked-column-in-table.html


Row Level Security: Data access can be restricted at the database engine level, so users see only what is relevant to them.

Wednesday, April 27, 2016

Download SQL Server 2016 Release Candidate 3 and evaluate


SQL2K16RC3.png
You can download the 120 day edition from here after registering.

Three types of download (only 64-bit):

ISO
CAB
Azure

Hardware and software requirements (abbreviated):

  • .NET Framework 4.6, Installation setup installs.NET Framework
  • Network Software: Shared memory, Named Pipes, TCP/IP and VIA
  • Hard disk space: Minimum of 6GB
  • Drive/Monitor/Internet required.
  • Memory: 1GB
  • Processor: x64 bit 1.4GHZ
  • Processor type: x64 Processor: AMD Opteron, AMD Athlon, Intel Xeon with Intel EM64T Support and Intel Premium with EM64T support
  • No support for WOW 64

Here are the benefits of SQL Server 2016:
Enhanced in-memory performance provide up to 30x faster transactions, more than 100x faster queries than disk based relational databases and real-time operational analytics
◾New Always Encrypted technology helps protect your data at rest and in motion, on-premises and in the cloud, with master keys sitting with the application, without application changes
◾Built-in advanced analytics– provide the scalability and performance benefits of building and running your advanced analytics algorithms directly in the core SQL Server transactional database
◾Business insights through rich visualizations on mobile devices with native apps for Windows, iOS and Android
◾Simplify management of relational and non-relational data with ability to query both through standard T-SQL using PolyBase technology
◾Stretch Database technology keeps more of your customer’s historical data at your fingertips by transparently stretching your warm and cold OLTP data to Microsoft Azure in a secure manner  without application changes
◾Faster hybrid backups, high availability and disaster recovery scenarios to backup and restore your on-premises databases to Microsoft Azure and place your SQL Server AlwaysOn secondaries in Azure

There are several different types of SQL Server 2014 available and detials are here:
https://msdn.microsoft.com/en-us/library/ms143506(v=sql.130).aspx#hwswr

Thursday, October 29, 2015

Get SQL Server 2016 CTP3 and work on SQL Server 2016 soon


SQL Server Team blog on 10/18/2015 announced the availability of SQL Server 2016 CTP3 besides quite a few others. This post is related to CTP2 only.

Microsoft has been very active in working on its database product SQL Server 2016 this year as seen in the number of posts. It is still in CTP but then it is not 2016 yet. These are the quoted kye words for this version,'faster transactions and queries, deeper insights on any device, advanced analytics, new security technology, and new hybrid cloud scenarios'.

http://hodentek.blogspot.com/2015/05/sql-serverr-2016-early-bird-special.html -5/13
http://hodentek.blogspot.com/2015/05/start-evaluating-sql-server-2016-ctp2.html -5/28
http://hodentek.blogspot.com/2015/07/sql-server-2016-ctp-21-is-ready-for.html -7/11
http://hodentek.blogspot.com/2015/07/upgrading-sql-server-2016-ctp-2-to-sql.html -7/11
http://hodentek.blogspot.com/2015/07/notes-2-sql-server-management-studio.html -7/13
http://hodentek.blogspot.com/2015/08/regarding-sql-server-2016-ctp-22.html -8/06
http://hodentek.blogspot.com/2015/09/download-sql-server-ctp-23-and-check.html -9/11

You can download from here after the sign in ritual.
https://www.microsoft.com/en-us/evalcenter/evaluate-sql-server-2016.
From the other links on the above site you can download the previous versions of SQL Servers(2014 SP1 and 2012 SP1; both evaluation versions valid for 180 days)

The stated benefits of the CTP3 are the following:
  •     Enhanced in-memory performance provide up to 30x faster transactions, more than 100x faster queries than disk based relational databases and real-time operational analytics
  •     New Always Encrypted technology helps protect your data at rest and in motion, on-premises and in the cloud, with master keys sitting with the application, without application changes
  •     Built-in advanced analytics– provide the scalability and performance benefits of building and running your advanced analytics algorithms directly in the core SQL Server transactional database
  •     Business insights through rich visualizations on mobile devices with native apps for Windows, iOS and Android
  •     Simplify management of relational and non-relational data with ability to query both through standard T-SQL using PolyBase technology
  •     Stretch Database technology keeps more of your customer’s historical data at your fingertips by transparently stretching your warm and cold OLTP data to Microsoft Azure in a secure manner  without application changes
  •     Faster hybrid backups, high availability and disaster recovery scenarios to backup and restore your on-premises databases to Microsoft Azure and place your SQL Server AlwaysOn secondaries in Azure
File formats are 64bit ISO or CAB. The installation is as usual except if you are using Microsoft Edge, you cannot save, you just run. However you do get an option to name a directory (with a default) to save extracted files.

Keep coming back to Hodentek and HodentekMSSS for more posts on SQL Server related information.

Thursday, May 28, 2015

SQL Server 2016 CTP2 is ready, get it now!

Starting May 27 you can download your own copy of SQL Server 2016 Community
Technology Preview 2 from this site:
https://www.microsoft.com/en-us/evalcenter/evaluate-sql-server-2016

Since it's lifetime is 120 days download right away to test drive. You can
download a CAB file or an ISO file. I believe there is a virtual image on the
Microsoft Azure cloud as well.

SQL Server 2016 has taken a big, big step in what it can offer compared to the
previous versions.

It offers a whole lot of benefits listed here from a
Microsoft site:

◾Enhanced in-memory performance provide up to 30x faster transactions, more
than 100x faster queries than disk based relational databases and real-time
operational analytics
◾New Always Encrypted technology helps protect your data at rest and in motion,
on-premises and in the cloud, with master keys sitting with the application,
without application changes
◾Built-in advanced analytics– provide the scalability and performance benefits
of building and running your advanced analytics algorithms directly in the core
SQL Server transactional database
◾Business insights through rich visualizations on mobile devices with native
apps for Windows, iOS and Android
◾Simplify management of relational and non-relational data with ability to
query both through standard T-SQL using PolyBase technology
◾Stretch Database technology keeps more of your customer’s historical data at
your fingertips by transparently stretching your warm and cold OLTP data to
Microsoft Azure in a secure manner  without application changes
◾Faster hybrid backups, high availability and disaster recovery scenarios to
backup and restore your on-premises databases to Microsoft Azure and place your
SQL Server AlwaysOn secondaries in Azure
You can get it for both x32 and x64 bit architectures.

SQL Server 2016 CTP2 CAB file:
Download the following files from the Evaluation Center to a temporary directory on your device:

◦SQLServer2016CTP2-<architecture>-<language>.box
◦SQLServer2016CTP2-<architecture>-<language>.exe

Once the download has completed, extract the zip files then double click on the SQLServer2016CTP2-<architecture>-<language>.exe to begin the installation process.
 

When Identity Security Becomes a Wall — Not a Shield

After a breach that forced a reset of my digital identity, I hit a roadblock I never anticipated: multi-factor authentication (2FA) locked m...