Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB2DBML - SQL Server - No description on Table #655

Open
MisterGeek opened this issue Nov 5, 2024 · 3 comments
Open

DB2DBML - SQL Server - No description on Table #655

MisterGeek opened this issue Nov 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@MisterGeek
Copy link

Before using the automatic generation of the DBML file for SQL server, I had queries allowing us to generate our file in DBML format.
In these scripts, I retrieved the description table, which was very useful when viewing tables in dbdocs
Exemple :

Table "dbo"."B_BATCH_PLANIF" {
  "BBPL_ANNEE" numeric(14,2)
  "BBPL_AV_ANNEE" nvarchar(60) [note: 'Mode CRON : Annee(s)']
  "BBPL_AV_HEURE" nvarchar(10) [note: 'Mode CRON : Heures']
 Note: 'Table des planification du batch' 
}

This informations are stock on sys.extended_properties where sys.extended_properties.name = MS_Description_Table

Other things : With the actual script we do not respect the order of the columns. Is it possible to keep the same order as the initial script ?
These information are very usefull particulary on our schema wich contains 742 tables and over 16 000 fields :-)

Thanks a lot

@huyleminh01
Copy link
Contributor

Hi @MisterGeek ,

Which command did you use, sql2dbml or db2dbml?

From your description, I guess you utilized the db2dbml command, and the issue appeared.

With the actual script we do not respect the order of the columns. Is it possible to keep the same order as the initial script ?

Actually, we released a patched version that allows the ability to keep the tables and columns in ordinal order. You can check it here.

About the missing table description, it might be our bugs, so we will note this issue to our backlog and fix it. We will notify you if there are any updates.

Thanks.

@huyleminh01 huyleminh01 added the bug Something isn't working label Nov 5, 2024
@MisterGeek MisterGeek changed the title SQL2DBML - SQL Server - No description on Table DB2DBML - SQL Server - No description on Table Nov 7, 2024
MisterGeek added a commit to MisterGeek/dbml that referenced this issue Nov 8, 2024
Correct table name comment ( DB2DBML - SQL Server - No description on Table holistics#655 )
@MisterGeek
Copy link
Author

hi @huyleminh01
I'm not familiar with PR but I found the problem on the SQL Request.
I'll let you look at the correction

(For the order columns, it's looks great with the last version)
Thanks

@MisterGeek
Copy link
Author

hi @huyleminh01 , if one of you could do the PR that would be great, as I could update our database model before the end of the year! thanks for the job !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants