<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>InfoAdvisors&#039; Blog &#187; macros</title>
	<atom:link href="http://blog.infoadvisors.com/index.php/tag/macros/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infoadvisors.com</link>
	<description>Love Your Data - Team Data</description>
	<lastBuildDate>Thu, 02 May 2013 21:12:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>The Best Data Modeler is a Lazy Data Modeler &#8211; #tsql2sday Post</title>
		<link>http://blog.infoadvisors.com/index.php/2011/02/08/the-best-data-modeler-is-a-lazy-data-modeler-tsql2sday-post/</link>
		<comments>http://blog.infoadvisors.com/index.php/2011/02/08/the-best-data-modeler-is-a-lazy-data-modeler-tsql2sday-post/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 21:37:32 +0000</pubDate>
		<dc:creator>Karen Lopez</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[Data Modeling]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[ER/Studio]]></category>
		<category><![CDATA[ERwin]]></category>
		<category><![CDATA[macros]]></category>
		<category><![CDATA[tsql2sday]]></category>

		<guid isPermaLink="false">http://blog.infoadvisors.com/index.php/2011/02/08/the-best-data-modeler-is-a-lazy-data-modeler-tsql2sday-post/</guid>
		<description><![CDATA[Special note: This post is part of TSQL Tuesday , a special blog posting monthly event based on a SQL Server/data topic chosen by one blogger.&#160; I&#8217;d love to see [...]<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://blog.infoadvisors.com/index.php/2010/12/08/webcast-recording-available-why-be-normal-ca-erwin-modeling-user-group/' rel='bookmark' title='Webcast Recording Available: Why Be Normal? CA ERwin Modeling User Group'>Webcast Recording Available: Why Be Normal? CA ERwin Modeling User Group</a></li>
<li><a href='http://blog.infoadvisors.com/index.php/2010/11/15/setting-the-default-datatype-in-erwin-data-modeler/' rel='bookmark' title='Setting the Default Datatype in ERwin Data Modeler'>Setting the Default Datatype in ERwin Data Modeler</a></li>
<li><a href='http://blog.infoadvisors.com/index.php/2010/11/16/creating-an-erwin-data-modeler-template/' rel='bookmark' title='Creating an ERwin Data Modeler Template'>Creating an ERwin Data Modeler Template</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<div class="wlWriterHeaderFooter" style="float:none; margin:0px; padding:4px 0px 4px 0px;"><iframe src="http://www.facebook.com/widgets/like.php?href=http://blog.infoadvisors.com/index.php/2011/02/08/the-best-data-modeler-is-a-lazy-data-modeler-tsql2sday-post/" scrolling="no" frameborder="0" style="border:none; width:450px; height:80px"></iframe></div>
<p><a href="http://sqlasylum.wordpress.com/2011/02/01/invitation-to-t-sql-tuesday-15-automation-in-sql-server/" target="_blank"><img style="background-image: none; border-right-width: 0px; margin: 0px 0px 0px 10px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" align="right" src="http://blog.infoadvisors.com/wordpress/wp-content/uploads/2011/02/image.png" width="154" height="154" /></a>Special note: This post is part of <a href="http://sqlasylum.wordpress.com/2011/02/01/invitation-to-t-sql-tuesday-15-automation-in-sql-server/" target="_blank">TSQL Tuesday</a> , a special blog posting monthly event based on a SQL Server/data topic chosen by one blogger.&#160; I&#8217;d love to see more data architects be part of the blog conversations.</p>
<p>I frequently hear from project team members that they&#8217;ve never used the automation features of their data modeling tools.&#160; Some of the reasons they give: </p>
<ul>
<li>I&#8217;m not a programmer.&#160; It is not fair to expect me to to know how to program in order to use these tools. </li>
<li>I have no idea how to use it and don&#8217;t have the time to find out </li>
<li>Nothing I do can be automated; it&#8217;s all one-off tasks </li>
<li>You can automate some of my work??? </li>
</ul>
<p>I think if you are giving these reasons without even trying, you a missing out on one of the niftiest features of your tools.&#160; </p>
<h3><a href="http://blog.infoadvisors.com/wordpress/wp-content/uploads/2011/02/image1.png"><img style="background-image: none; border-right-width: 0px; margin: 0px 10px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" align="left" src="http://blog.infoadvisors.com/wordpress/wp-content/uploads/2011/02/image_thumb.png" width="248" height="291" /></a>I&#8217;m not a Programmer</h3>
<p>Great! Neither am I.&#160; The good news is that many tools don&#8217;t require you to have full blown programmer skills in order to automate data modeling tasks.&#160; They have macro-like languages that require a bit of logic skills, but not much more.&#160; For instance, Embarcadero ER/Studio XE uses a <a class="zem_slink" title="Macro (computer science)" href="http://en.wikipedia.org/wiki/Macro_%28computer_science%29" rel="wikipedia">macro language</a> called Sax Basic that is very similar to <a class="zem_slink" title="VBScript" href="http://en.wikipedia.org/wiki/VBScript" rel="wikipedia">VBscript</a>.&#160; I&#8217;m lucky in that I used BASIC early in my career and am generally familiar with the language.&#160; The toughest part is learning the functions, objects, and properties that are specific to ER/Studio, but thankfully there is a built in Help system that does a half decent job of helping you use them.</p>
<h3>I Have No Idea How to Use It</h3>
<p>That&#8217;s okay, because I don&#8217;t start with a blank macro when I go to automate a task; I just start with an existing one that is close to the same thing and tailor it to what I need to do.&#160; I needed to export some meta data from my model to Excel, so I opened an existing macro that exported a bunch of data and tailored it to include the data I wanted, in the format I wanted it. </p>
<p>We host a mailing list/forum just for macros and automation of data modeling tools in our InfoAdvisors User Discussion Groups.&#160; There are sample models that others have tailored and community members who are willing to help you through a tough part.&#160; Also, most vendors have similar resources on their websites.</p>
<p><a title="http://wb.itboards.com/wb/default.asp?action=10&amp;boardid=19&amp;fid=1384" href="http://wb.itboards.com/wb/default.asp?action=10&amp;boardid=19&amp;fid=1384" target="_blank">InfoAdvisors ER/Studio Macro</a></p>
<h3>Nothing I Do Can Be Automated</h3>
<p>I think you must be spending a huge amount of time clicking and waiting when you could be pushing a button and doing something else like grabbing a cup of coffee or answering a question on a forum&#8230;or even helping out a team member.&#160; For instance, some of the macros that have been posted to our communities are:</p>
<p><a title="http://wb.itboards.com/wb/default.asp?action=9&amp;boardid=19&amp;read=172604&amp;fid=1384" href="http://wb.itboards.com/wb/default.asp?action=9&amp;boardid=19&amp;read=172604&amp;fid=1384" target="_blank">ER/Studio Exporting All a Model&#8217;s Submodels as Images</a></p>
<p><a title="http://wb.itboards.com/wb/default.asp?action=9&amp;boardid=19&amp;read=170046&amp;fid=1384&amp;FirstTopic=20&amp;LastTopic=39" href="http://wb.itboards.com/wb/default.asp?action=9&amp;boardid=19&amp;read=170046&amp;fid=1384&amp;FirstTopic=20&amp;LastTopic=39">ER/Studio Macro to Convert 1 Datatype to another Datatype</a></p>
<p><a href="http://wb.itboards.com/wb/default.asp?action=9&amp;boardid=19&amp;read=168844&amp;fid=1384&amp;FirstTopic=20&amp;LastTopic=39" target="_blank">ER/Studio Macro to Add all Entities from a Model to It&#8217;s Submodel</a></p>
<p><a href="http://wb.itboards.com/wb/default.asp?action=9&amp;read=164366&amp;fid=1384&amp;BoardID=19#755451" target="_blank">ER/Studio Macro to Print PDFs of all Submodels Completely Unattended</a></p>
<p><a href="http://wb.itboards.com/wb/default.asp?action=9&amp;boardid=10&amp;read=172556&amp;fid=1323" target="_blank">ERwin Macro to Generate DDL for a DBMS not Currently Supported</a></p>
<p><a href="http://blog.infoadvisors.com/wordpress/wp-content/uploads/2011/02/image2.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" align="right" src="http://blog.infoadvisors.com/wordpress/wp-content/uploads/2011/02/image_thumb1.png" width="312" height="141" /></a>Most of the macros I write tend to be to make some boring aspects of my job less boring by allowing me to do something else.&#160; This means printing out my entire model, exporting images, making mass updates, etc.&#160; If it has an algorithm that I can automate, I&#8217;m going to invest 15-20 minutes so that I don&#8217;t have to spend hours or even hundreds of hours over the course of a project doing those non-architecture tasks.</p>
<p>Another major use of automation I do is for setting properties for my DBAs.&#160; Their standards and preferences should be automatable.&#160; How FKs are named, how indexes should be names, which datatypes should be used, etc.&#160; The fact that I can run a quick macro to do these and keep my DBAs happy, well, that&#8217;s priceless.&#160; They love me for it &lt;crickets, crickets&gt;&#8230;well they should love me for it.</p>
<h3>You can Automate Some of my Work??? </h3>
<p>Yes.&#160; Not really the analytical parts, but some of the more mundane, boring, &quot;change all these but not those&quot; tasks.&#160; Sure, finding and tailoring a macro takes time, but it is so worth it the next time you push a button, wander off to the coffee room to refill your <a href="http://www.google.com/url?sa=t&amp;source=video&amp;cd=10&amp;ved=0CF0QtwIwCQ&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-3gghjszSho&amp;rct=j&amp;q=trenta&amp;ei=XbRRTduSOMO9tgeZ8PScCQ&amp;usg=AFQjCNHO8DK9lrqB737Kr9WqWQiVttMvuw&amp;sig2=NWAldbkc1GUaupDy_h1ixQ&amp;cad=rja" target="_blank">31 oz. Trenta cup</a> with high-octane coffee.&#160; Managers really don&#8217;t want you spending times on tasks that nearly anyone with mouse skills could do.&#160; By using macros and <a class="zem_slink" title="Application programming interface" href="http://en.wikipedia.org/wiki/Application_programming_interface" rel="wikipedia">APIs</a>, you can add significant hours of productivity to your day.&#160; Let&#8217;s also admit that computers are generally better at doing mass changes more accurately than we are.&#160; </p>
<p>So let&#8217;s summarize:</p>
<ol>
<li>Automating boring tasks makes you happier. </li>
<li>Happier Data Architects are better Data Architects </li>
<li>Automated recurring, boring tasks make bosses happier </li>
<li>Automating tasks makes for more accurate work </li>
<li>Saving time for you and your team members makes everyone happier. </li>
</ol>
<p>A Lazy Data Modeler is a Better Data Modeler.</p>
<div style="margin-top: 10px; height: 15px" class="zemanta-pixie"><img style="border-bottom-style: none; border-right-style: none; border-top-style: none; float: right; border-left-style: none" class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=724133d6-ecac-4755-8e6e-1237e9c57f1e" /></div>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://blog.infoadvisors.com/index.php/2010/12/08/webcast-recording-available-why-be-normal-ca-erwin-modeling-user-group/' rel='bookmark' title='Webcast Recording Available: Why Be Normal? CA ERwin Modeling User Group'>Webcast Recording Available: Why Be Normal? CA ERwin Modeling User Group</a></li>
<li><a href='http://blog.infoadvisors.com/index.php/2010/11/15/setting-the-default-datatype-in-erwin-data-modeler/' rel='bookmark' title='Setting the Default Datatype in ERwin Data Modeler'>Setting the Default Datatype in ERwin Data Modeler</a></li>
<li><a href='http://blog.infoadvisors.com/index.php/2010/11/16/creating-an-erwin-data-modeler-template/' rel='bookmark' title='Creating an ERwin Data Modeler Template'>Creating an ERwin Data Modeler Template</a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.infoadvisors.com/index.php/2011/02/08/the-best-data-modeler-is-a-lazy-data-modeler-tsql2sday-post/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
