How to generate SQL Server data dictionary from SQL script

  Рет қаралды 14,121

DataResearchLabs

DataResearchLabs

Күн бұрын

Пікірлер: 38
@shafiulamin4128
@shafiulamin4128 3 ай бұрын
Dangerously useful mate. Hope it still available in git.
@nagelfamily
@nagelfamily 3 жыл бұрын
Great video. Spot on. Seriously good howto President. What could help others is to describe the purpose for the data dictionary.
@DataResearchLabs
@DataResearchLabs 3 жыл бұрын
Good point. I should have done a levelset at the beginning describing what a data dictionary is and why it is useful. Too late for the video (already published, can no longer edit)...but can put it here in the comments: "A data dictionary is a central metadata repository used to provide detailed information about the contents of a dataset or database. It includes data object names and descriptions. It includes data element properties including: data types, size, ordinal position, nullability, etc. It can include Entity-Relationship (ER) Diagrams...or if not that then at least primary key / foreign key / natural or unique key definitions to show how tables related between each other. Data dictionaries are meant to be shared amongst team members enabling faster, more complete knowledge transfer. Data dictionaries are often created as spreadsheets (no different here, just import the final result set out to Excel or Google Sheets). Although beyond the scope of this video and this data dictionary script, data dictionaries can also include system-level diagrams, reference data (static ref table contents), missing data codes (-1 for null, etc.), rejection or quality indicator codes, and business rules.
@santhanam4565
@santhanam4565 2 жыл бұрын
Thank you very much, glad that I stumbled upon your channel.
@MichaelGibson1
@MichaelGibson1 Жыл бұрын
Any quick tips on how to sort out the formatting? The vid jumps over that. Going table by table seems tedious...any quick solutions? Thanks! Great video.
@matthiasbarmettler8020
@matthiasbarmettler8020 2 жыл бұрын
Great video thx a lot! I still struggle to adapt the querry in such a way that the table schema is also queried, would you have any tips?
@DataResearchLabs
@DataResearchLabs 2 жыл бұрын
try modifying the "baseTbl" CTE query, adding in any table-specific columns of information you want. Then carry those new baseTbl.XXXX columns down into the subsequent CTE query "metadata" and also in the bottom select. Hope that helps. Ping if you need more clarification.
@marceloleoncaceres6826
@marceloleoncaceres6826 11 ай бұрын
Good job!, thanks for sharing it.
@DataResearchLabs
@DataResearchLabs 9 ай бұрын
You are welcome. :)
@E1knight
@E1knight 3 жыл бұрын
Thanks Man. Could you please upload more vids for SQL server and dictionary update
@DataResearchLabs
@DataResearchLabs 3 жыл бұрын
Thank you.
@DataResearchLabs
@DataResearchLabs 3 жыл бұрын
Built a tool to automate the script. Video is here: kzbin.info/www/bejne/gpmUZZmBra6UosU
@oladepoolatunde628
@oladepoolatunde628 Жыл бұрын
Great video, it saves me, Please can you show how you format the table on excel?
@barrysinanan1311
@barrysinanan1311 Жыл бұрын
Really Great, Thanks
@OdgeBodge
@OdgeBodge 2 жыл бұрын
amazing script just what i needed thank you so much
@DataResearchLabs
@DataResearchLabs 2 жыл бұрын
Glad it helped
@beerana3822
@beerana3822 Жыл бұрын
@DataResearchLabs Do have you a MSSQL Script to generate Tables, Functions, Stored procedure for PostgreSQL Conversion of MSSQL table, views, functions and stored procedure into postgreSQL
@hackproof114
@hackproof114 3 жыл бұрын
Nice 👍 video brother
@DataResearchLabs
@DataResearchLabs 3 жыл бұрын
Thank you for watching. Am glad it was helpful. :)
@abhishek12865a
@abhishek12865a 4 ай бұрын
Hey Thank you but this script is having some errors Like Msg 10757, Level 15, State 1, Line 82 The function 'STRING_AGG' may not have a WITHIN GROUP clause. Msg 10757, Level 15, State 1, Line 95 The function 'STRING_AGG' may not have a WITHIN GROUP clause. Msg 156, Level 15, State 1, Line 115 Incorrect syntax near the keyword 'AS'. Please help
@sandeepgour2747
@sandeepgour2747 Жыл бұрын
Great video, but I want to only single table data dictionary. This is position by this sql script
@yayaree01
@yayaree01 2 жыл бұрын
Thank you :)
@DataResearchLabs
@DataResearchLabs 2 жыл бұрын
Welcome.
@jaymob6285
@jaymob6285 2 жыл бұрын
is there a way to update a description through an update statement?
@DataResearchLabs
@DataResearchLabs 2 жыл бұрын
Yes. :) Checkout this stackoverflow article using "exec sp_addextendedproperty": stackoverflow.com/questions/3754180/adding-a-column-description ...or checkout this simple open source tool I wrote to wrap the script. It has a feature that automatically generates comment scripts for you to manipulate: github.com/DataResearchLabs/data_analysts_toolbox/tree/main/data_dictionary_generator
@macapagalglaizaangel6818
@macapagalglaizaangel6818 Жыл бұрын
Hello can you help me iam currently using the 2022 or 2023 version i am not sure hhahaha and there is an error like the STRING_AGG
@faizanmajid2922
@faizanmajid2922 2 жыл бұрын
How to run this if you are working on SQL Server 2016? String_agg function is not supported on it...
@DataResearchLabs
@DataResearchLabs 2 жыл бұрын
Ahhh! You are correct. This is why others have been having problems. I need to update the documentation to make it clear that MSSQL 2017 or later is need. Thank you for pointing out.
@DataResearchLabs
@DataResearchLabs 2 жыл бұрын
Also, if you have and older version (2016 or prior), use FOR XML PATH approach here: stackoverflow.com/questions/15477743/listagg-in-sqlserver
@thealchemist6133
@thealchemist6133 Жыл бұрын
@@DataResearchLabs have you fixed it ? i am still having the same error. Using ssms 2018
@thealchemist6133
@thealchemist6133 Жыл бұрын
Hello Faisal, have you managed to modify your script? do you mind sharing it?
@swatikumari-nu9te
@swatikumari-nu9te 3 жыл бұрын
Gives error the function string_agg may not have a written group clause
@DataResearchLabs
@DataResearchLabs 3 жыл бұрын
Hello Swati. It is very difficult for me to troubleshoot without your exact environment. You've probably already Googled and seen this StackOverflow response for why it might be happening, but if not then please take a look. I am busy over the next several weeks (new videos put on hold), but when I get a chance will review the script to see if I can come up with any more ideas. stackoverflow.com/questions/43611024/issue-with-string-agg-within-group-and-visual-studio
@dubVintage
@dubVintage 2 жыл бұрын
Are you aware of a similar method for documenting SSIS packages?
@DataResearchLabs
@DataResearchLabs 2 жыл бұрын
Hello. No, I have not yet gone looking for SSIS metadata in the system tables. I suspect its there and could be done, just have not tried yet. Here is a link that might help: www.sqlshack.com/how-to-retrieve-information-about-ssis-packages-stored-in-msdb-database/
@ramnarayans2072
@ramnarayans2072 2 жыл бұрын
Git hub link is not accessible.
@DataResearchLabs
@DataResearchLabs 2 жыл бұрын
github.com/DataResearchLabs/sql_scripts/blob/main/data_dictionary_scripts.md works for me. raw.githubusercontent.com/DataResearchLabs/sql_scripts/main/mssql/data_dictionary/data_dict_dump.sql also works. Maybe try again?
@macapagalglaizaangel6818
@macapagalglaizaangel6818 Жыл бұрын
Please help me asap huhuhuhuuu
Database Replication & Sharding Explained
6:53
Hayk Simonyan
Рет қаралды 25 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 31 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 29 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 99 МЛН
How to generate PostgreSQL data dictionary from SQL script
6:05
DataResearchLabs
Рет қаралды 8 М.
UUID vs INT: What’s Better For Your Primary Key?
9:40
Database Star
Рет қаралды 53 М.
MSSQL Data Dictionary Generator - Overview
8:22
DataResearchLabs
Рет қаралды 2,8 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 202 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 80 М.
What Is A Data Catalog And Why Do People Use Them?
10:26
Seattle Data Guy
Рет қаралды 19 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,6 МЛН
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 9 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 31 МЛН