This may be the wrong place to ask this, but I’m trying to take data from a SQL Datasource, place it into Excel, and automatically generate a Data Dictionary from the aforementioned SQL Datasource. Has anyone done this or know how to do this?
[EDIT]
What I need is all of the table names, and all of the columns in each table (each table will be it’s own excel tab), and for each column, I need the data type and whether or not it is nullable
Assuming you mean a listing of columns in a database with the column meta data and this is a one time need and doesn’t need much in the way of automation.
I would execute the following in SSMS
This will output multiple results set the first one is a table name then everyone after would be the column data you mentioned.
You could get rid of the cursor and just have two outputs if you prefer but I find it easier to press Ctrl+A Ctrl+Con each grid