SQL Server blocked access to procedure ‘sys.xp_cmdshell’ of component ‘xp_cmdshell’

SQL Server blocked access to procedure 'sys.xp_cmdshell' of component 'xp_cmdshell'

In this article, I will explain how I encountered the error “SQL Server blocked access to procedure ‘sys.xp_cmdshell’ of component ‘xp_cmdshell’.” Also, I will explain what I did to resolve this error. Problem: Recently, when I was working with SQL Server stored procedures, I wanted to create a stored procedure that creates a directory in … Read more >>

Loop in SQL Server stored procedure (with examples)

MariaDB JSON_EXTRACT

This tutorial is about the loops in SQL Server stored procedure. You will learn how loops work in stored procedures. You will see a number of examples of loops in stored procedures in SQL Server. SQL Server stored procedure for loop SQL Server does not support FOR loop. However, you can use the WHILE loop … Read more >>

Msg 567: Unable to retrieve data for this section of the report

Msg 567 Unable to retrieve data for this section of the report

In this article, we will discuss the error message “Msg 567: Unable to retrieve data for this section of the report. Following error occurred. File is not a recognizable trace file.“ Problem I encountered this error while I was working with the Log files. I was trying to get various information about the stored procedures … Read more >>

Stored procedure for search functionality in SQL Server

SQL Server stored procedure dynamic filter

In this SQL Server tutorial, we will learn How to create a stored procedure in SQL Server for search functionality. We will also discuss different examples of search functionality. The complete list of topics discussed in this article is listed below. So, before creating a stored procedure to implement some search, first, we should understand … Read more >>

Try catch in SQL Server stored procedure with examples

Try catch in SQL Server stored procedure

This tutorial is about the try-catch in SQL Server stored procedure with examples. We will discuss some of the examples that will help you understand exception handling more deeply. Also, in the end, we will discuss the best practices of exception handling in stored procedures in SQL Server. You can also learn more about exception … Read more >>

Msg 11555 NOT NULL parameters are only supported with natively compiled modules, except for inline table-valued functions

NOT NULL parameters are only supported with natively compiled modules

In this article, you will know about the error “Msg 11555 NOT NULL parameters are only supported with natively compiled modules, except for inline table-valued functions.” Also, we will discuss why this error arises and what things to do to resolve this error. Problem Recently, I was working with the SQL Server Stored Procedure Parameters. … Read more >>

SQL Server Stored Procedure Parameters: Optional, Default, OUTPUT and Table-Valued

SQL Server stored procedure parameters example with input and optional parameters in VS Code

To add SQL Server stored procedure parameters, list them after the procedure name: an @name, a data type, and = value if the parameter should be optional. Tested on SQL Server 2025 (17.0.1000.7) Standard Developer edition through sqlcmd, server collation SQL_Latin1_General_CP1_CI_AS. Below: defaults, a NULL catch-all search, OUTPUT, table-valued parameters, and the real Msg 201 … Read more >>