<?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>SolidWorks Reseller Ohio, Kentucky, Indiana &#124; 3DVision Technologies Blog &#187; SQL</title>
	<atom:link href="http://www.3dvision.com/wordpress/index.php/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.3dvision.com/wordpress</link>
	<description>Design engineering solutions, including 3D CAD, FEA, Data Management, Rapid Prototyping and more.</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:26:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>SQL &#8211; Convert to Hex</title>
		<link>http://www.3dvision.com/wordpress/index.php/2012/01/19/sql-convert-to-hex/</link>
		<comments>http://www.3dvision.com/wordpress/index.php/2012/01/19/sql-convert-to-hex/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 15:32:19 +0000</pubDate>
		<dc:creator>Jeff Sweeney</dc:creator>
				<category><![CDATA[PDM]]></category>
		<category><![CDATA[Hex]]></category>
		<category><![CDATA[hexadecimal]]></category>
		<category><![CDATA[Jeff Sweeney]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.3dvision.com/wordpress/?p=4322</guid>
		<description><![CDATA[Often times when getting really down and dirty with SolidWorks Enterprise PDM, I need to know a document&#8217;s ID value in hex format. Back in the old days [yesterday] I would do a SQL query on the document&#8217;s table and then manually calculate the hexadecimal value.
However I found a SQL function that will do the conversion [...]]]></description>
			<content:encoded><![CDATA[<p>Often times when getting really down and dirty with SolidWorks Enterprise PDM, I need to know a document&#8217;s ID value in hex format. Back in the old days [yesterday] I would do a SQL query on the document&#8217;s table and then manually calculate the hexadecimal value.</p>
<p>However I found a SQL function that will do the conversion for me:<br />
<code>CONVERT(varbinary,&lt;value&gt;)</code></p>
<p>Cool eh? Thus a SQL statement like this:</p>
<p><code>SELECT DocumentID, CONVERT(varbinary,<span style="font-family: monospace;">DocumentID</span>) as IDHex, Filename FROM Documents where Filename like 'Big Tuna%'</code></p>
<p>Returns:</p>
<p><a href="http://www.3dvision.com/wordpress/wp-content/uploads/2012/01/hex.JPG"><img class="alignnone size-full wp-image-4323" title="hex" src="http://www.3dvision.com/wordpress/wp-content/uploads/2012/01/hex.JPG" alt="hex" width="283" height="130" /></a></p>
<p>Yeah, SQL rocks.</p>
<table border="0" cellspacing="0" cellpadding="0" width="450">
<tbody>
<tr>
<td width="18%" valign="middle">
<p align="left"><img src="http://www.3dvision.com/wordpress/wp-content/uploads/2007/10/jeff1.jpg" alt="Jeff Sweeney" /></p>
</td>
<td width="82%" valign="middle"><strong><a href="http://www.3dvision.com/wordpress/index.php/tag/Jeff-Sweeney/" target="_blank">Jeff Sweeney</a></strong>, CSWE<br />
Engineering Data Specialist<br />
3DVision Technologies</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3dvision.com/wordpress/index.php/2012/01/19/sql-convert-to-hex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Should you upgrade to SQL 2008 R2?</title>
		<link>http://www.3dvision.com/wordpress/index.php/2011/04/26/should-you-upgrade-to-sql-2008-r2/</link>
		<comments>http://www.3dvision.com/wordpress/index.php/2011/04/26/should-you-upgrade-to-sql-2008-r2/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 14:19:00 +0000</pubDate>
		<dc:creator>Jeff Sweeney</dc:creator>
				<category><![CDATA[PDM]]></category>
		<category><![CDATA[Jeff Sweeney]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.3dvision.com/wordpress/?p=2948</guid>
		<description><![CDATA[Though the smaller backups are nice, I wouldn't recommend upgrading yet unless your backups are taking too long or you are running into storage issues.]]></description>
			<content:encoded><![CDATA[<p>You may have noticed in your SolidWorks Enterprise PDM 2011 DVDs, Microsoft SQL 2008 Standard Edition R2 was in the box. If you originally installed EPDM 2010 or earlier, you likely have SQL 2008 Standard Edition installed. Should you use your new DVD to upgrade to 2008 R2?</p>
<p>SolidWorks says you do not have to. EPDM will run fine on SQL 2008, it even runs fine on SQL 2005.</p>
<p><a title="Link to Microsoft" href="http://www.microsoft.com/sqlserver/2008/en/us/R2-editions.aspx">The following capabilities are new to R2 Standard</a>:</p>
<ul>
<li>Backup Compression to reduce data backups by up to 60% and help reduce time spent on backups</li>
<li>Can be managed instance for Application and Multi-Server Management capabilities</li>
<li>High-scale complex event processing with SQL Server StreamInsight™</li>
</ul>
<p>In your EPDM environment, the first bullet above is all you care about&#8230;a 60% smaller backup file is pretty impressive.</p>
<p>I had to upgrade because a customer sent me a backup of their database and as you can imagine my old SQL could not read this new backup format. The upgrade took about 20 minutes on my M6500 and was very easy. Drop the DVD in the drive and follow the prompts.<br />
<a href="http://www.3dvision.com/wordpress/wp-content/uploads/2011/03/Upgrade.JPG"><img class="alignnone size-full wp-image-2947" title="Upgrade" src="http://www.3dvision.com/wordpress/wp-content/uploads/2011/03/Upgrade.JPG" alt="Upgrade" width="787" height="287" /></a><br />
Though the smaller backups are nice, I wouldn&#8217;t recommend upgrading yet unless your backups are taking too long or you are running into storage issues.</p>
<p>Remember to backup before you upgrade.</p>
<table border="0" cellspacing="0" cellpadding="0" width="450">
<tbody>
<tr>
<td width="18%" valign="middle">
<p align="left"><img src="http://3dvision.com/wordpress/wp-content/uploads/2007/10/jeff1.jpg" alt="Jeff Sweeney" /></p>
</td>
<td width="82%" valign="middle">
<p align="left"><strong><a href="http://www.3dvision.com/wordpress/index.php/tag/Jeff-Sweeney/" target="_blank">Jeff Sweeney</a></strong><br />
Engineering Data Specialist<br />
3DVision Technologies</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3dvision.com/wordpress/index.php/2011/04/26/should-you-upgrade-to-sql-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Babysitting SQL</title>
		<link>http://www.3dvision.com/wordpress/index.php/2010/06/25/babysitting-sql/</link>
		<comments>http://www.3dvision.com/wordpress/index.php/2010/06/25/babysitting-sql/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 14:57:27 +0000</pubDate>
		<dc:creator>Jeff Sweeney</dc:creator>
				<category><![CDATA[PDM]]></category>
		<category><![CDATA[Enterprise]]></category>
		<category><![CDATA[EPDM]]></category>
		<category><![CDATA[Jeff Sweeney]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.3dvision.com/wordpress/?p=1668</guid>
		<description><![CDATA[In the world of SolidWorks Enterprise PDM administration, maintaining the Enterprise systems is really pretty easy. You need to add/remove users (assuming the HR department bothers to tell you when they hire someone) and ensure you have good reliable backups.
But don&#8217;t forget Enterprise&#8217;s playmate &#8211; SQL.
SQL is that one kid who was hard to babysit [...]]]></description>
			<content:encoded><![CDATA[<p>In the world of SolidWorks Enterprise PDM administration, maintaining the Enterprise systems is really pretty easy. You need to add/remove users (assuming the HR department bothers to tell you when they hire someone) and ensure you have good reliable backups.</p>
<p>But don&#8217;t forget Enterprise&#8217;s playmate &#8211; SQL.</p>
<p>SQL is that one kid who was hard to babysit for. Sure he was good when you were watching him, but if you left him alone for too long you would catch him chewing on the furniture, burning the hair on your sister&#8217;s dolls, or using a shovel in your mom&#8217;s flower bed.</p>
<p>He&#8217;s a good kid, he&#8217;ll serve you well, but every once in a while you need to pat him on the head so he knows you are watching him.</p>
<p>Like any Microsoft product, SQL requires some occasional maintenance. Tim Kwong, SolidWorks Sr. Technical Support Engineer, recommends this schedule:</p>
<p><strong>Daily</strong>:</p>
<ul>
<li>Preform backups of the SQL database (and log file if using Full Recovery Mode)</li>
<li>If using the SQL backup feature, offload the backup from the SQL server</li>
</ul>
<p><strong>Weekly or Monthly</strong>:</p>
<ul>
<li>Rebuild the SQL indexes using SQL Maintenance Plan Wizard</li>
<li>Review the MDF and LDF files to make sure they haven&#8217;t exceeded the initial sizes</li>
<li>Defrag the SQL drives</li>
</ul>
<p><strong>Quarterly</strong>:</p>
<ul>
<li>Check the integrity of the SQL backup by restoring and testing a recent database backup on a test setup</li>
</ul>
<table border="0" cellspacing="0" cellpadding="0" width="450">
<tbody>
<tr>
<td width="18%" valign="middle">
<p align="left"><img src="http://3dvision.com/wordpress/wp-content/uploads/2007/10/jeff1.jpg" alt="Jeff Sweeney" /></p>
</td>
<td width="82%" valign="middle">
<p align="left"><strong>Jeff Sweeney</strong><br />
Engineering Data Specialist<br />
3DVision Technologies</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3dvision.com/wordpress/index.php/2010/06/25/babysitting-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>There&#8217;s an object for that</title>
		<link>http://www.3dvision.com/wordpress/index.php/2010/03/04/theres-an-object-for-that/</link>
		<comments>http://www.3dvision.com/wordpress/index.php/2010/03/04/theres-an-object-for-that/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:26:12 +0000</pubDate>
		<dc:creator>Jeff Sweeney</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[PDM]]></category>
		<category><![CDATA[EdmUtility]]></category>
		<category><![CDATA[EPDM]]></category>
		<category><![CDATA[Jeff Sweeney]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.3dvision.com/wordpress/?p=1412</guid>
		<description><![CDATA[When writing custom code for your SolidWorks Enterprise PDM system, have you been tempted to connect directly to the Enterprise database tables? You certainly could. The database isn&#8217;t encrypted and when you first start out it is easy to get the information you need with a simple SQL query.
Don&#8217;t. There&#8217;s an object for that. Everything [...]]]></description>
			<content:encoded><![CDATA[<p>When writing custom code for your SolidWorks Enterprise PDM system, have you been tempted to connect directly to the Enterprise database tables? You certainly could. The database isn&#8217;t encrypted and when you first start out it is easy to get the information you need with a simple SQL query.</p>
<p>Don&#8217;t. There&#8217;s an object for that. Everything you need from the database: BOMs, history, users, variables, searches,  &#8230; has an associated object in the API.</p>
<p>It may take a little while to learn these new objects, but your code will be more robust <span style="text-decoration: underline;">and</span> since you never know when SolidWorks may change the database schema, your code will be much more &#8220;upward&#8221; compatible in the future.</p>
<p><a href="http://www.3dvision.com/wordpress/wp-content/uploads/2010/03/Heart.jpg"><img class="alignnone size-full wp-image-1427" title="Heart" src="http://www.3dvision.com/wordpress/wp-content/uploads/2010/03/Heart.jpg" alt="Heart" width="157" height="134" /></a></p>
<p>Check out the EdmUtility constants list in the API help file to give you a taste of some of the objects available to satisfy your little SQL writin&#8217; heart.</p>
<table border="0" cellspacing="0" cellpadding="0" width="450">
<tbody>
<tr>
<td width="18%" valign="middle">
<p align="left"><img src="http://3dvision.com/wordpress/wp-content/uploads/2007/10/jeff1.jpg" alt="Jeff Sweeney" /></p>
</td>
<td width="82%" valign="middle">
<p align="left"><strong>Jeff Sweeney</strong></p>
<p>Engineering Data Specialist<br />
3DVision Technologies</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3dvision.com/wordpress/index.php/2010/03/04/theres-an-object-for-that/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Kill SQL</title>
		<link>http://www.3dvision.com/wordpress/index.php/2009/12/04/how-to-kill-sql/</link>
		<comments>http://www.3dvision.com/wordpress/index.php/2009/12/04/how-to-kill-sql/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 13:22:18 +0000</pubDate>
		<dc:creator>Jeff Sweeney</dc:creator>
				<category><![CDATA[PDM]]></category>
		<category><![CDATA[Enterprise]]></category>
		<category><![CDATA[Jeff Sweeney]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.3dvision.com/wordpress/?p=1130</guid>
		<description><![CDATA[Looking for a quick way to kill your SQL engine and bring your SolidWorks Enterprise PDM system to a screeching halt?
I just got a support call from an Enterprise customer who was complaining they could not connect to the database. Tried restarting SQL, the service stopped &#8211; good&#8230;but then I could not start back up [...]]]></description>
			<content:encoded><![CDATA[<p>Looking for a quick way to kill your SQL engine and bring your SolidWorks Enterprise PDM system to a screeching halt?</p>
<p>I just got a support call from an Enterprise customer who was complaining they could not connect to the database. Tried restarting SQL, the service stopped &#8211; good&#8230;but then I could not start back up again &#8211; bad. Rebooted the server, the service still laid there dead. -<a href="http://wiki.answers.com/Q/Is_worser_a_word" target="_blank">worser</a> than bad!</p>
<p><a href="http://www.3dvision.com/wordpress/wp-content/uploads/2009/12/killSQL.jpg"><img class="size-full wp-image-1133 alignnone" title="killSQL" src="http://www.3dvision.com/wordpress/wp-content/uploads/2009/12/killSQL.jpg" alt="killSQL" width="227" height="299" /></a></p>
<p>Next, tried to do a SQL repair install &#8211; the repair install failed, telling me &#8220;the database engine was bad&#8221;. Well no kidding! Had to do a clean uninstall/reinstall of SQL before we could get the service started again.</p>
<p>What happened? Symantec AntiVirus. <a href="http://service1.symantec.com/SUPPORT/ent-security.nsf/docid/2002120911393848" target="_blank">Symantec started scanning the databases and less than a minute later there was nothing left but the crying</a>. Luckily it didn&#8217;t seem to hurt the actual databases &#8211; <a title="Sweet High Fives" href="http://www.youtube.com/watch?v=IAT5m2GmMSo" target="_blank">they mounted right back up</a> after the reinstall.</p>
<table border="0" cellspacing="0" cellpadding="0" width="450">
<tbody>
<tr>
<td width="18%" valign="middle">
<p align="left"><img src="http://3dvision.com/wordpress/wp-content/uploads/2007/10/jeff1.jpg" alt="Jeff Sweeney" /></p>
</td>
<td width="82%" valign="middle">
<p align="left"><strong>Jeff Sweeney</strong></p>
<p>Engineering Data Specialist<br />
3DVision Technologies</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3dvision.com/wordpress/index.php/2009/12/04/how-to-kill-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL 2008 PreRelease</title>
		<link>http://www.3dvision.com/wordpress/index.php/2009/12/03/sql-2008-prerelease/</link>
		<comments>http://www.3dvision.com/wordpress/index.php/2009/12/03/sql-2008-prerelease/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 21:06:24 +0000</pubDate>
		<dc:creator>Jeff Sweeney</dc:creator>
				<category><![CDATA[PDM]]></category>
		<category><![CDATA[Enterprise]]></category>
		<category><![CDATA[Jeff Sweeney]]></category>
		<category><![CDATA[PreRelease]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.3dvision.com/wordpress/?p=1123</guid>
		<description><![CDATA[Had a little scare yesterday and since misery loves company I thought I would share it with you.
Yesterday I received an email with this image:

These are the file properties of the Microsoft SQL 2008 install that comes with SolidWorks Enterprise PDM. Look closely, it says that it is a prerelease! Yikes! Using a prerelease for [...]]]></description>
			<content:encoded><![CDATA[<p>Had a little scare yesterday and since misery loves company I thought I would share it with you.</p>
<p>Yesterday I received an email with this image:</p>
<p><a href="http://www.3dvision.com/wordpress/wp-content/uploads/2009/12/SQLVersion.JPG"><img class="alignnone size-medium wp-image-1124" title="SQLVersion" src="http://www.3dvision.com/wordpress/wp-content/uploads/2009/12/SQLVersion-244x300.jpg" alt="SQLVersion" width="288" height="354" /></a></p>
<p>These are the file properties of the Microsoft SQL 2008 install that comes with SolidWorks Enterprise PDM. Look closely, it says that it is a prerelease! Yikes! Using a prerelease for production data?</p>
<p>I&#8217;ve done some checking and this SQL build (also known as 10.0.1600.22) is a a <a href="http://en.wikipedia.org/wiki/Release_to_manufacturing#RTM" target="_blank">RTM</a> build. [<a href="http://support.microsoft.com/kb/321185" target="_blank">Reference</a>] I have no idea why it says prerelease in the version information.  If you are concerned, there is a service pack can be downloaded from the Microsoft web site.</p>
<p>Heart attack averted. As you were.</p>
<table border="0" cellspacing="0" cellpadding="0" width="450">
<tbody>
<tr>
<td width="18%" valign="middle">
<p align="left"><img src="http://3dvision.com/wordpress/wp-content/uploads/2007/10/jeff1.jpg" alt="Jeff Sweeney" /></p>
</td>
<td width="82%" valign="middle"><strong>Jeff Sweeney</strong><br />
Engineering Data Specialist<br />
3DVision Technologies</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3dvision.com/wordpress/index.php/2009/12/03/sql-2008-prerelease/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are you sure you are backed up?</title>
		<link>http://www.3dvision.com/wordpress/index.php/2009/09/30/are-you-sure-you-are-backed-up/</link>
		<comments>http://www.3dvision.com/wordpress/index.php/2009/09/30/are-you-sure-you-are-backed-up/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 17:08:13 +0000</pubDate>
		<dc:creator>Jeff Sweeney</dc:creator>
				<category><![CDATA[3D CAD]]></category>
		<category><![CDATA[PDM]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Enterprise]]></category>
		<category><![CDATA[Jeff Sweeney]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.3dvision.com/wordpress/?p=888</guid>
		<description><![CDATA[I just got off of the phone with a SW Enteprise PDM administrator. I was getting ready to change some database settings and decided to make a backup of their database first. (Better safe than sorry, especially with someone else&#8217;s data!) I while making the backup I noticed there were no other backups in existence. [...]]]></description>
			<content:encoded><![CDATA[<p>I just got off of the phone with a SW Enteprise PDM administrator. I was getting ready to change some database settings and decided to make a backup of their database first. (Better safe than sorry, especially with someone else&#8217;s data!) I while making the backup I noticed there were no other backups in existence. Turns out for the past two years this company has not made a single database backup!! The IT guys assumed the Engineering department was making them, and vice versa.</p>
<p>This is the second company in two weeks I have found in this situation.</p>
<p>Backing up your data files on the archive server is NOT the same thing as backing up your database. Please put your mouse down, call your IT guys right now and confirm your company is backing up your Enterprise <em>database</em>.</p>
<p>Stop dancing on the mine field.</p>
<table border="0" cellspacing="0" cellpadding="0" width="450">
<tbody>
<tr>
<td width="18%" valign="middle">
<p align="left"><img src="http://3dvision.com/wordpress/wp-content/uploads/2007/10/jeff1.jpg" alt="Jeff Sweeney" /></p>
</td>
<td width="82%" valign="middle">
<p align="left"><strong>Jeff Sweeney</strong><br />
Engineering Data Specialist<br />
3DVision Technologies</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3dvision.com/wordpress/index.php/2009/09/30/are-you-sure-you-are-backed-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

