Microsoft Ignite Book of News
Microsoft Ignite Book of News - reveals a ton of developments - SQL Server 2022 Some topics for database professionals covered in the latest release =>Azure Cosmos DB=>Azure Database for...
View ArticleHow to INSERT INTO EXEC with extra column
Question: I'm trying to capture a stored procedure output into a temporary table , which I can do using the INSERT INTO EXEC method. But I need to add an extra column to the target table , for...
View ArticleHow to get last logon of user on Domain Controllers using Powershell
This Powershell script will iterate through all available Domain Controllers associated with Active Directory . It will record the last logon time on the specific Domain Controllers. The script takes...
View ArticleHow to detect if the guest account is disabled
A common SQL Server Security check is to identify if the guest id is enabled. By default , the SQL Server guest id is disabled , but for various reasons it can become enabled. To identify the...
View ArticleHow to view SQL Server Password Configurations
Question: How can I check the SQL Server authentication password configurations?Answer: When you create a new SQL login - (SQL Server authentication) , there are some options , just below the Password...
View ArticleFocus on OLDEST_PAGE as a factor that can delay LOG truncation
SQL Server Log truncation deletes inactive Virtual Log Files (VLF) from the SQL Server database transaction log . The Log truncation process frees space in the logical log for reuse by the Physical...
View ArticleHow to check Enforce a Password policy is enabled on SQL Server
Question: Using t-sql , How can check I Enforce a password policy is enabled on SQL Server ? I want to add this check for a regular SQL Server security configuration scan. This information would be...
View ArticleHow to check SSL encryption is enabled on SQL Server with Powershell
Question: Do you have a powershell script or t-sql script to find if ssl encryption is enabled on SQL Server? I don't want to check if connections are SSL enabled but actually check the Force...
View ArticleHow to return the character values based on ASCII character number values
Question: How can I view all the character values based on the ASCII character number values? I can do something like : SELECT CHAR(65) and return "A" - but I'd like to list out all the...
View ArticleHow to get members of BUILTIN\ADMINISTRATORS with Powershell
Question: How can I obtain a list of BUILTIN\Administrators members using Powershell ? Answer: There is a Powershell cmdlet Get-LocalGroupMember. This cmdlet will give you a basic listing , it is then...
View ArticleHow to Benchmark SQL Server for a hardware migration
I find myself working on SQL Server 99.9% of the time - utilising a range of metrics , wait stats, and other methods of assessing performance on SQL Server databases. But how do you approach creating...
View ArticleTested TDE with Instant File Initialization on SQL Server databases
Instant File Initialization (IFI) enabled on SQL Server, for data files only, leads to faster execution on certain file operations, as it bypasses the zeroing procedure while reclaiming disk...
View ArticleImpact on TDE encryption in progress on SQL Server restart
Question: I am planning on TDE encrypting a bunch of large SQL Server databases. Due to potential IO contention issues during the work day , the plan is to encrypt these databases during the out of...
View ArticleA guide to restore a TDE database backup to another SQL Server Instance
Question: I have a SQL Server with TDE enabled and the user databases are TDE configured. I need to take a backup and restore the TDE enabled database to another SQL Server Instance . Could you take me...
View ArticleA simple guide to Microsoft SQL Server Migration Assistant for Access
The requirement is to develop a workflow for migrating MS Access objects to SQL Server. Reasons for migrating include:-Access has a size limit of 2 GB-Access has a concurrent users limit of 255...
View ArticleHow to migrate your SQL Server database to Amazon RDS
How to migrate your SQL Server database to Amazon RDSMain Points - These are summarized notes, for a full details I've added the video at the bottom of these notes- RDS fully managed service and...
View ArticleSQL Server Blocking Reading List
Microsoft documentation defines SQL Server blocking as " blocking occurs when one session holds a lock on a specific resource and a second SPID attempts to acquire a conflicting lock type on the same...
View ArticleBest practices for running Microsoft Active Directory Services on AWS
Best practices for running Microsoft Active Directory Services on AWSTo extend Active Directory Services from on-prem to AWS - that is the questionI watched a very informative video by Boris Nisenbaum...
View ArticleA summary of creating a trust relationship between on-premises domain and AWS...
How to create a trust relationship between on-premises domain and AWS Directory ServiceMost SQL Servers use a large portion of the authentication as Windows Authentication - utilising Kerberos and NTLM...
View ArticleSQLCMD uses OLEDB as a client interface
Question: When the sqlcmd utility connects to a SQL Server ,what connection provider is used to interface with SQL Server ? Answer: SQLCMD uses OLEDB as client interface. You can verify by...
View Article