SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Need column names and types from multiple servers and databases


Need column names and types from multiple servers and databases

Author
Message
mar.ko
mar.ko
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1105 Visits: 274
I have a source/table mapping document in Excel used in a large datamart application.
I am trying to make the target assignments from the source tables....but there are many of them...some on different servers.
What I would love to do is Open Excel from within T-SQL and have that procedure just append to column names and data types to a designated worksheet.
The trick is that a parameter would be needed to indicate the worksheet is to be cleared first before being appended.
I saw this article : http://www.sqlservercentral.com/articles/Excel/64838/ but it's somewhat dated....and it only performs a cell-at-a-time transfer.
Outside of SSIS, can anyone think of a better way of doing this ?
My intent is to use this tool throughout the project.....as we have over 128 KPI's to develop.....from hundreds of target tables.
Yes, I could do this manually, but that would be brutal..and error-prone as with anything manually done in Excel.
Joe Torre
Joe Torre
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6680 Visits: 1222
It would be easier to use Excel, PowerBI or some other method from Excel. A Macro could be written to update the spreadsheets.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search