How To Check User Permissions On Table In SQL Server

How To Check User Permissions On Table In SQL Server

As a DBA working with SQL Server, managing the user permissions for a specific object is crucial for security. In this article, I will discuss various approaches to checking user permissions on a table in an SQL server. Approach-1: Using the fn_my_permissions We can use fn_my_permissions as a simple approach for this task. The query … Read more

How To Find Table With Column Name in SQL Server

How To Find Table With Column Name in SQL Server

As a database admin, I find the table with the column name daily to fix the issues. Since it is one of my daily tasks, I have identified a few quick methods to perform this. In this article, let us discuss all these methods one by one. How to find table by column name in … Read more

How To Check If CDC Is Enabled On A Table In SQL Server

How To Check If CDC Is Enabled On A Table In SQL Server

As a developer on one of my projects, checking whether the CDC is enabled on a table in the SQL server was a daily task. I have identified a few simple approaches to do this. In this article, I will take you through all these approaches. Approach-1: Using sys.tables You can easily use the sys.tables … Read more

How To Check Table Description In SQL Server

How To Check Table Description In SQL Server

As a senior developer in SQL Server, I have identified a few best approaches to getting table descriptions. In this article, we will explore all the approaches. Approach-1 Using the sp_help stored procedure You can use the sp_help stored procedure to get the details of the SQL table mentioned in the query below. Syntax Example … Read more

How To Rename The Table Name In SQL Server

How To Rename The Table Name In SQL Server

Recently, a new MNC took over my current organization. My manager asked me to rename our database’s existing tables based on the latest company name. As a developer, I analyzed the requirements and identified the best approaches to changing the table names in the SQL server. Approach-1 Using the sp_rename Stored Procedure You can rename … Read more

How To Update Statistics On A Table In SQL Server

How To Update Statistics On A Table In SQL Server

As a senior developer working with SQL servers, when I was analyzed in terms of performance perspective, I learned that keeping the statistics up to date is crucial for optimal query performance. In this article, I will walk you through the best approaches to updating statistics on a table in an SQL server. Approach-1 Using … Read more

How to create index on temp table in SQL Server

How to create index on temp table in SQL Server

Performance is the primary key for one of our clients, so we are dealing with many temp tables. We then considered creating an index for those temp tables to significantly boost query performance. We have identified a few approaches to this. In this article, we will walk you through all those approaches to creating the … Read more

How To Enable CDC On A Table In SQL Server

How To Enable CDC On A Table In SQL Server

Recently, when I spoke to my client, they expected me to track and manage the data changes. So, as a DBA, I suggested to them why we can’t use the CDC feature of the SQL server, which we can enable at a database level and table level, etc. In this article, I will walk you … Read more

How To Create A Table Variable In SQL Server

How To Create A Table Variable In SQL Server

Last week, our client required us to work with tabular data. After analyzing this requirement, we identified a few ways to do this. I will discuss creating a table variable in an SQL server using practical examples and scenarios in this article. Table variables in SQL Server are like local variables that can hold tabular … Read more

Cannot create memory optimized tables. To create memory optimized tables, the database must have a MEMORY_OPTIMIZED_FILEGROUP that is online and has at least one container.

Cannot create memory optimized tables. To create memory optimized tables, the database must have a MEMORY_OPTIMIZED_FILEGROUP that is online and has at least one container.

Recently, I was working for a client, and I was supposed to create an in-memory table for the performance perspective. However, I got this error when I tried to create the in-memory table. You can see the same error in the screenshot below. Check out How To Create A Table Valued Function In SQL Server … Read more