Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can in-memory tables be added to a database diagram

I have a SQL Server 2016 database with in-memory tables. I'd like to use the database diagram feature to create a graphic to match.

Running SSMS 18.3.1. When I start a new diagram, the in-memory tables are not shown in the drop down. Is there another way to get them on the diagram?

Note: In the official documentation these are called memory-optimized tables. See Introduction to Memory-Optimized Tables

like image 673
user1443098 Avatar asked Dec 16 '19 21:12

user1443098


2 Answers

You can't add OLTP object in Database Diagram, not in even in SQL Server 2019.

I thought there should be a way to modify [definition] column in [dbo].[sysdiagrams] but it is HexString of unknown file type. (I tried many formats but its obviously an internal Microsoft type)

Unfortunately, there is no reference to mention that is a not-supported feature. (I send a comment to this page )

like image 129
XAMT Avatar answered Nov 19 '22 22:11

XAMT


OLTP is not supported for database diagram. You do not have access to in-memory tables in the diagram because the diagram does not recognize the essence of a in-memory tables as a table, in fact SQL Server generates a DLL for each created Memory-Optimized Table Type that includes the functions required for accessing the indexes and retrieving data from the related Memory-Optimized Table Variable

like image 41
Reza Jenabi Avatar answered Nov 19 '22 22:11

Reza Jenabi