Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

DBEAVER not showing MSSQL Clustered index in DDSL

I am having the following issue in DBEAVER 21.2.4 and MSSQL 15.0.4178.1

Whenever I see the DDL from SQL SERVER ( Script Table > Create as ) it displays the whole constraints.

...
     CONSTRAINT [PK_Emp] PRIMARY KEY CLUSTERED 
    (
        [EmpID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 100, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
    ) ON [PRIMARY]

While DBEAVER displays only

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

...
    CONSTRAINT PK_Emp PRIMARY KEY (EmpID)

and no data in constraints.
Not Clustered. not Pad_index, no nothing.

No Constraints

Is this bug from Dbeaver, or am I missing something

>Solution :

This

 CONSTRAINT [PK_Emp] PRIMARY KEY CLUSTERED 
(
    [EmpID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 100, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

and

CONSTRAINT PK_Emp PRIMARY KEY (EmpID)

are identical, because CLUSTERED is the default for PRIMARY KEY constraints, [PRIMARY] is the default filegroup, ALLOW_PAGE_LOCKS defaults to ON, etc.

SSMS always explicitly scripts each option, and apparantely dbbeaver omits opions that it thinks are using the default values.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading