Partition Columns For A Unique Index Must Be A Subset Of The Index Key.

Partition Columns For A Unique Index Must Be A Subset Of The Index Key.

Recently, I was trying to create a partitioned table in an SQL server; after executing the SQL script, I got this error. In this article, I will walk you through the solution. Partition Columns For A Unique Index Must Be A Subset Of The Index Key. I tried executing the SQL script below. The moment I executed … Read more

Incorrect Syntax Near The Keyword ‘Order’

Incorrect Syntax Near The Keyword 'Order'

Recently, I was working on a requirement that required me to retrieve data from the Order table in my SQL server database. After executing the Select query, I got the error Incorrect syntax near the keyword. I was executing the SQL query below. After executing the above query, I got this error, as shown in … 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

Saving Changes Is Not Permitted SQL Server

Saving Changes Is Not Permitted SQL Server

Recently, I was working on an SQL server table and trying to add a new column per my client’s requirement using the SQL Server Management Studio Designer approach. In the designer view, I entered the column name and chose the data type, and when I clicked on the Save button, I got the saving changes … Read more