<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5434109515850811933</id><updated>2011-11-27T17:05:59.422-07:00</updated><category term='constraints'/><category term='mode'/><category term='oil'/><category term='forgotten'/><category term='Domain of Heroes'/><category term='SQL'/><category term='RPG'/><category term='Stored Procedure'/><category term='programming'/><category term='Sql Server Express 2005'/><category term='drop table'/><category term='video game'/><category term='PBBG'/><category term='door locks'/><category term='content'/><category term='bad memory'/><title type='text'>Don't Tease The Slow Kid</title><subtitle type='html'>A geek's blog featuring software development nuggets, video game comments, and the occasional geek rant.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-8978155847464707461</id><published>2010-10-21T13:59:00.000-06:00</published><updated>2010-10-21T13:59:03.938-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='oil'/><category scheme='http://www.blogger.com/atom/ns#' term='forgotten'/><category scheme='http://www.blogger.com/atom/ns#' term='door locks'/><category scheme='http://www.blogger.com/atom/ns#' term='bad memory'/><title type='text'>Popped the trunk twice, and the dang hood still won't open.</title><content type='html'>Ocassionally, I wonder if I really am fit to be driving. The other day, I was late for work, and didn't remember until on the road that A: I needed gass and B: I needed to add a quart of oil.&amp;nbsp; So, I stop at the nearby 7-11. I hurridly pop the trunk and step outside the car to begin filling. &lt;br /&gt;I immediately found a problem. I'd forgotten to pop the gas. So, I unlock my car, (I locked it cause I was going to pick up a drink.) and pop the gas. Relock the door, and start to pump my gas. Once the gas is going, I walked to the hood to check my oil.&amp;nbsp; The dang thing won't open.&lt;br /&gt;I go back, unlock the door, pop the trunk again, lock the door, and try the hood again. Still stuck. At this point, (it is important to know that I drive a crappy problematic car) I wonder if once again, the hood popper is stuck. It had had the problem a year ago. However, I know I need oil, so I determine to fight through it.&amp;nbsp; I unlock the door, and go to pop the trunk, and reallize what I'd been doing. So, laughing at my stupidiy, I pop the &lt;em&gt;hood,&amp;nbsp;&lt;/em&gt;lock the door,&amp;nbsp;and proceed to check / add oil. I put away the gas nozzle, and got ready to fill my mug.... which was locked in the car.&lt;br /&gt;Even more irritated at the repeated locking / unlocking, I retrieve my mug, fill it, and start on my way. I got about a half block before I realized I'd forgotton something.... my trunk was bobbing up and down, flapping in the wind.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-8978155847464707461?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/8978155847464707461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=8978155847464707461' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/8978155847464707461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/8978155847464707461'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2010/10/popped-trunk-twice-and-dang-hood-still.html' title='Popped the trunk twice, and the dang hood still won&apos;t open.'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-2310046311965134044</id><published>2010-09-03T19:36:00.000-06:00</published><updated>2010-09-03T19:36:58.139-06:00</updated><title type='text'>... If I Had My Wallet!</title><content type='html'>I needed to pay a friend $60 bucks. I planned on it, so I withdrew the $60 and proceeded about my day. In the course of the day, my wife asked me to pick up some formula. I was in a hurry, so I just used the cash I had on hand, figuring that when I get gas (for I was almost out) I'd get some cashback. &lt;br /&gt;&lt;br /&gt;Being who I am, I was late getting up the next morning so I rushed out, forgetting to get gas. I realize this on the way, it's fine, I'll get there ok, just do it during my morning break. During my morning break, I go to the gas station to get my gas. This would have worked great.... if I had my wallet.&lt;br /&gt;&lt;br /&gt;As the day progressed, the team started talking about lunch. After much discussion, we decided on a local mexican restaurant.&amp;nbsp; I was all jazzed and ready to go on the team lunch, which would have worked great.... if I had my wallet.&lt;br /&gt;&lt;br /&gt;During my &lt;em&gt;sack&lt;/em&gt; lunch later, I recall that I was supposed to get money back for my friend. So I jump in my car, and head to the bank. I was in a rush, so I figure I'll just hit the atm. This would have worked great.... if I had my wallet.&lt;br /&gt;&lt;br /&gt;A few hours later, I was totally immersed in work.&amp;nbsp; I surfaced long enough to realize that I didn't have to use my card. I could just go into the bank to get my money. As I was working late, I decided to go during dinner. So I jumped in my car, got to the bank and was on my way in when I conveniently remembered that you need ID to withdraw cash. Which would have worked great.... if I had my wallet.&lt;br /&gt;&lt;br /&gt;In the end, I had to make a separate trip to give them the money, and in fact had to borrow some money to even get home. &lt;br /&gt;&lt;br /&gt;It was not a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-2310046311965134044?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/2310046311965134044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=2310046311965134044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/2310046311965134044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/2310046311965134044'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2010/09/if-i-had-my-wallet.html' title='... If I Had My Wallet!'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-376561654229789314</id><published>2010-08-28T19:32:00.000-06:00</published><updated>2010-08-28T19:32:00.392-06:00</updated><title type='text'>And switching back.</title><content type='html'>Haven't really done anything for awhile. Mostly because this is something I do when I don't have anything else I'm more interested in. (Read, no new games, no work, no kids to play with.) Anyhow, I set up a more professional site for myself, and will post further coding comments there at &lt;a href="http://www.demilledevelopment.com/blog"&gt;DeMille Development Blog&lt;/a&gt;. This will now be for my more original and whacked posts. Rant on my friends.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-376561654229789314?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/376561654229789314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=376561654229789314' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/376561654229789314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/376561654229789314'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2010/08/and-switching-back.html' title='And switching back.'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-2986037280825976453</id><published>2010-03-08T10:04:00.000-07:00</published><updated>2010-03-08T10:04:48.348-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PBBG'/><category scheme='http://www.blogger.com/atom/ns#' term='video game'/><category scheme='http://www.blogger.com/atom/ns#' term='Domain of Heroes'/><category scheme='http://www.blogger.com/atom/ns#' term='RPG'/><title type='text'>PBBG Domain of Heroes</title><content type='html'>I don't know how many of you have actually looked into PBBGs. It stands for Persistent Browser Based Game. They require only a browser, and store information about you. Now, I've never tried any but the RPG's, however, I've found them fairly nostalgic. If you ever played any old school text based video games, these may fit the bill. &lt;br /&gt;For me, it is like one of the old choose your destiny books. Where you can take actions, and influence the quest. I've been amazed at the amount of creativity and time that have been put ino them. The current one I've been toying with, is Domain of Heroes. It is a much more "hands off" version than I've seen before, with a very interesting business model. I say hand's off, because you queue to fight monsters, and it will continue your last action, and continue brining in monsters, until you time out. Every action resets the time out, or you can walk away. I'm enjoying it, because it can be played &lt;em&gt;while&lt;/em&gt; playing other games.&lt;br /&gt;The business model is very comprehensive. They have a "wish" system. You can do account upgrades or character upgrades for wishes. Wishes can be either bought or earned. (For example, if you refer others to the game, you get a percentage of wish for every wish they buy.) The purchases can be astetic, such as changing your chat color or getting an icon next to your name, or functional, such as increasing inventory and collection capacities. In additon, there are "ease of use" upgrades that are intersting, such as allowing you to type in longer messages in chat (you are initially limited to 50 characters) or making it so you can join a guild. Anyhow, this specific one has held my insterest for longer than others, so I figured I'd share. If you're interested, you can check it out (and hook me up) by using this link &lt;a href="http://www.domainofheroes.com/?rpid=60267"&gt;http://www.DomainOfHeroes.com/?rpid=60267&lt;/a&gt; . If you do choose to try it, I suggest reading the quick start guide before you dig in, it is fairly short, and you'll be better off for it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-2986037280825976453?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/2986037280825976453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=2986037280825976453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/2986037280825976453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/2986037280825976453'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2010/03/pbbg-domain-of-heroes.html' title='PBBG Domain of Heroes'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-6325951772174562555</id><published>2010-03-05T16:20:00.002-07:00</published><updated>2010-03-05T16:25:16.683-07:00</updated><title type='text'>Enitity Framework CAN Support Stored Procedures That Do Not Have A Return Value</title><content type='html'>I didn't realize this, but apparently there articles that state that EF does not support procedures that return no result. This surprised me because I've been doing that in my application.&lt;br /&gt;&lt;br /&gt;To Do So:&lt;br /&gt;When you import your objects, make sure the stored proecure is imported. Next go to your Model Browser, and go the the EntityContainer in your Model. Right click Function Imports and add the name of your stored procedure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once you have done that, you can call the procedure through EF&amp;nbsp;in the following manner:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b6d7a8;"&gt;//Create the Context then set up a DbCommand.&lt;/span&gt;&lt;br /&gt;YourEntityModel.sprocContext = new YourEntityModel.();&lt;br /&gt;DbCommand command = sprocContext.Connection.CreateCommand();&lt;br /&gt;command.CommandText = "YourEntityModel.yourStoredProcedure";&lt;br /&gt;command.CommandType = CommandType.StoredProcedure;&lt;br /&gt;&lt;span style="color: #b6d7a8;"&gt;//If parameters are needed&lt;/span&gt;&lt;br /&gt;DbParameter parameter = command.CreateParameter();&lt;br /&gt;parameter.DbType = DbType.Int32;&lt;br /&gt;parameter.ParameterName = parameterName;&lt;br /&gt;parameter.Value = value;&lt;br /&gt;command.Parameters.Add(parameter);&lt;br /&gt;&lt;span style="color: #b6d7a8;"&gt;//Excecute the command&lt;/span&gt;&lt;br /&gt;DbCommand nonQuery = (DbCommand)nonQueryObject;&lt;br /&gt;nonQuery.Connection.Open();&lt;br /&gt;nonQuery.ExecuteNonQuery();&lt;br /&gt;&lt;br /&gt;It is as simple as that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-6325951772174562555?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/6325951772174562555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=6325951772174562555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/6325951772174562555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/6325951772174562555'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2010/03/enitity-framew-can-support-stored.html' title='Enitity Framework CAN Support Stored Procedures That Do Not Have A Return Value'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-7997715925687448911</id><published>2010-03-03T21:08:00.000-07:00</published><updated>2010-03-03T21:08:00.003-07:00</updated><title type='text'>Fisher Price Cradel Swing Uses the Same Motor as Air Wick Fresh Matic</title><content type='html'>&amp;nbsp;&amp;nbsp; I had to post this, for the simple fact that it astounds me. Yesterday, our baby swing, a Fisher Price Cradel Swing crapped out on us. The music and mobile continuted to work, but the swing, did not, in fact, swing. So loooking around, we found that the cheapest model in stores is around $70, which was a bit pricey for me at the moment. So instead, I appealed to the internets to resolve my solution, and I stumbled on the following site:&amp;nbsp; &lt;a href="http://www.fixya.com/support/t1101519-fisher_price_natures_touch_cradle_swing"&gt;http://www.fixya.com/support/t1101519-fisher_price_natures_touch_cradle_swing&lt;/a&gt;&amp;nbsp;An lo and behold, it says that with an hour, and an Air Wick Fresh Matic you can replace the motor in the swing and it would fix it. &lt;br /&gt;&amp;nbsp;&amp;nbsp; At $11 for the air wick, I figure, what the hey, I'll give it a shot. Long story short, one dismembered air wick (it uses triangle bit screws, I don't have that, but I do have two pairs of pliers tougher than the plastic), a cut thumb, and a bit of sweat later, the swing swings again. So, crazy, ya? Anyhow, thanks to the internets for saving me $60. &lt;br /&gt;&amp;nbsp; For anyone who actually tries this, it is possible for someone who isn't incredibly mechanically minded, however, you'll probably disagree with me half way through.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-7997715925687448911?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/7997715925687448911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=7997715925687448911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/7997715925687448911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/7997715925687448911'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2010/03/fisher-price-cradel-swing-uses-same.html' title='Fisher Price Cradel Swing Uses the Same Motor as Air Wick Fresh Matic'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-3984634851851061976</id><published>2010-01-22T16:57:00.000-07:00</published><updated>2010-01-22T17:06:01.615-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Stored Procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server Express 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='constraints'/><category scheme='http://www.blogger.com/atom/ns#' term='drop table'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Script for a table dropping utility.</title><content type='html'>This a script that I've created to power drop a table. It kills all constraints, (Foreign Keys, Uniqueness, Primary, etc.) attached to the table, then drops said table. This is specific to SQL Server Express, I'm not sure how well it translates to other versions. Much thanks to &lt;a href="http://drsql.spaces.live.com/Blog/cns!80677FB08B3162E4!1191.entry"&gt;http://drsql.spaces.live.com/Blog/cns!80677FB08B3162E4!1191.entry&lt;/a&gt; for the portion that kills all the relationships.&lt;br /&gt;&lt;br /&gt;To Create the Stored Procedure:&lt;br /&gt;&lt;br /&gt;GO&lt;br /&gt;IF EXISTS (SELECT * FROM sysobjects WHERE id = object_id(N'[dbo].[utility$powerDropTable]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)&lt;br /&gt;BEGIN&lt;br /&gt;DROP PROCEDURE dbo.utility$powerDropTable&lt;br /&gt;END&lt;br /&gt;GO&lt;br /&gt;create procedure utility$powerDropTable&lt;br /&gt;(&lt;br /&gt;@table_schema sysname = 'dbo', --does not do a like comparison&lt;br /&gt;@parent_table_name sysname = '%', --it is the parent when it is being referred to&lt;br /&gt;@child_table_name sysname = '%', --it is the child table when it is the table referring&lt;br /&gt;--to another&lt;br /&gt;@constraint_name sysname = '%' --can be used to drop only a single constraint&lt;br /&gt;) as&lt;br /&gt;-- ----------------------------------------------------------------&lt;br /&gt;-- Drop all of the foreign key contraints on and or to a table&lt;br /&gt;-- ----------------------------------------------------------------&lt;br /&gt;begin&lt;br /&gt;set nocount on&lt;br /&gt;declare @statements cursor&lt;br /&gt;set @statements = cursor static for&lt;br /&gt;select 'alter table ' + quotename(ctu.table_schema) + '.' + quotename(ctu.table_name) +&lt;br /&gt;' drop constraint ' + quotename(cc.constraint_name)&lt;br /&gt;from information_schema.referential_constraints as cc&lt;br /&gt;join information_schema.constraint_table_usage as ctu&lt;br /&gt;on cc.constraint_catalog = ctu.constraint_catalog&lt;br /&gt;and cc.constraint_schema = ctu.constraint_schema&lt;br /&gt;and cc.constraint_name = ctu.constraint_name&lt;br /&gt;where ctu.table_schema = @table_schema&lt;br /&gt;and ctu.table_name like @child_table_name&lt;br /&gt;and cc.constraint_name like @constraint_name&lt;br /&gt;and exists (select *&lt;br /&gt;from information_schema.constraint_table_usage ctu2&lt;br /&gt;where cc.unique_constraint_catalog = ctu2.constraint_catalog&lt;br /&gt;and cc.unique_constraint_schema = ctu2.constraint_schema&lt;br /&gt;and cc.unique_constraint_name = ctu2.constraint_name&lt;br /&gt;and ctu2.table_schema = @table_schema&lt;br /&gt;and ctu2.table_name like @parent_table_name)&lt;br /&gt;open @statements&lt;br /&gt;declare @statement nvarchar(1000)&lt;br /&gt;While (1=1)&lt;br /&gt;begin&lt;br /&gt;fetch from @statements into @statement&lt;br /&gt;if @@fetch_status &lt;&gt; 0&lt;br /&gt;break&lt;br /&gt;exec (@statement)&lt;br /&gt;end&lt;br /&gt;declare @dropStatement nvarchar(1000)&lt;br /&gt;set @dropStatement = 'IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N''[dbo].[' + @parent_table_name + ']'') AND type in (N''U'')) DROP TABLE ' + quotename(@parent_table_name)&lt;br /&gt;exec (@dropStatement)&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;To use said said stored procedure:&lt;br /&gt;&lt;br /&gt;exec utility$powerDropTable @parent_table_name = 'YourTableName';&lt;br /&gt;&lt;br /&gt;This was created as we have a source control script that rebuilds the entire database for us to use on our local sql server. The script would create the table if it was missing, but didn't clear the table and recreate it. Now it kills it, then recreates it, so column additions, renames, etc get picked up when the script is run.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-3984634851851061976?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/3984634851851061976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=3984634851851061976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/3984634851851061976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/3984634851851061976'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2010/01/script-for-table-dropping-utility.html' title='Script for a table dropping utility.'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-2884188410860436271</id><published>2010-01-22T16:55:00.001-07:00</published><updated>2010-01-22T16:57:18.565-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mode'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='content'/><title type='text'>Switching Modes</title><content type='html'>Hello All,&lt;br /&gt; (And by that, I mean, hello me, as I'm the only one who has ever read this, lol.) While I will still post the occasional rant, I'm going to dual mode this blog. I'm a programmer, and I'm learning lots of new and useful things. Anything that I have a sever issue with searching out on the web, I'm going to post here.&lt;br /&gt; - The Slow Kid&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-2884188410860436271?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/2884188410860436271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=2884188410860436271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/2884188410860436271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/2884188410860436271'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2010/01/switching-modes.html' title='Switching Modes'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-1501103806907335911</id><published>2008-06-14T15:27:00.000-06:00</published><updated>2008-06-14T16:17:06.866-06:00</updated><title type='text'>A Brief Note On My Geek Cred</title><content type='html'>As a software developer, I wasn't really expecting to be rolling with the cutting edge of "cool." At least not as defined by popular media. (Which I'll take this moment to say, is rediculously stupid; I'm not sure I've ever met anyone I respect who gives a rats what the fashion columnists say.) However, I was in no way prepared for the level of geek cred I currently run with.&lt;br /&gt;&lt;br /&gt;Geek cred or geek credibility is the geek culture counter-part of street cred. Geek cred in the programming world is a good thing. However, there are certain things that either bring up, or bring down your geek cred. For example, no self respecting geek will sport a tan, and you better know whether 2D4 is better or worse than 1D8. (Paper and pen games for increased geek cred. A +25 geek cred bonus is if you currently play Dungeons and Dragons.)&lt;br /&gt;&lt;br /&gt;Anyhow.... almost my entire team meets on Saturdays to play Dungeons and Dragons. They've been doing this for quite some time. And of course, this naturally spills over into the work environment. Whilst chatting with one co-worker over the best translation strategy for merge fields, it isn't uncommon to hear a rulebook question on a spectral hand curse combination against a wraith. Now, to my shame, I don't really know what this means. (It's supposed to be good though. And a -5 geek cred for not being familar with the special problems posed by a wraith in additon to the -25 geek cred penatly for not having played Dungeon and Dragons.)&lt;br /&gt;&lt;br /&gt;The situation gets bleaker in other ways:&lt;br /&gt;&lt;br /&gt;For example, I'm the one of the few guys on the team that doesn't code at home. Coding, while enjoyable in some ways, is not fun for me. Coding is a job. I'll work hard, and work smart at work, but I'm not particularly thrilled and burning my own time on it. Because of this sad state of affairs, I'm just not as involved in the platform battles that periodically go on. ( A further -5 geek cred for not caring what IoC tool we use.)&lt;br /&gt;&lt;br /&gt;As a final blow to my geek cred, I happily use, and intend to continue to use, a Microsoft Windows OS. It's true. I said it. I don't particualarly like Macs. They work in a convoluted and backwards matter. More to the point, I detest the rabid nature of Mac afficionados. It isn't enough for them to love their OS, they have to hate Windows. If your main selling point is that you're not a PC, why also advertise that you can run PC programs? But I digress.......&lt;br /&gt;&lt;br /&gt;I'm also not a big fan of Linux. The only real reason for this is because thing's don't work like I expect them to. I am a lazy individual, and don't want to work hard for something that I can do easily. (Score! +2 geek cred!) I don't like command line, and I hate being forced to figure out the minute and often irritating diffrences in commands between Linux flavors. (A -5 geek cred for not preferring command line. -25 geek cred for disliking mac, and -50 for not liking linux.)&lt;br /&gt;&lt;br /&gt;I figure that current bunch of guys I work with can only up my geek cred. They're a good bunch of guys, and I'm learning many things from them. (Both what to do and not to do.) I really enjoy the friendships I'm developing there. &lt;br /&gt;&lt;br /&gt;I work with a bunch of geeks..... and I fit in there!! The thing that you have to remember though, is that in the end, everyone ends up working for a geek.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-1501103806907335911?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/1501103806907335911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=1501103806907335911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/1501103806907335911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/1501103806907335911'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2008/06/brief-note-on-my-geek-cred.html' title='A Brief Note On My Geek Cred'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5434109515850811933.post-6959830715307789466</id><published>2008-05-02T17:25:00.000-06:00</published><updated>2008-05-02T17:53:37.173-06:00</updated><title type='text'>What is a blue-jay gonna do with spikes anyway?</title><content type='html'>My wife and I periodically play "vintage" video games together. So earlier this week we were playing Sonic 2 on the Sega Genesis. All of the sudden, out of the rock, pops what appears to me to be about 7 blue-jay's in a row. These blue-jays spring out in a straight line, then back back into the rock.  Now, if you've played Sonic 2 recently, you'll be well aware of the very dirty nature of the game. There are parts that almost perfectly geared in such a way that you CANNOT get through it without getting hit. This blue-jay attack is one of those parts.&lt;br /&gt;&lt;br /&gt;So I think to myself, "what the crap are blue jays flying out of rock for? Even for Sonic this is a stretch." As I begin to curse (in a completely non-cursing way) at the game, my wife chimes in that I hit the spikes. &lt;br /&gt;&lt;br /&gt;So, thus begins my question. What the crap is a blue-jay gonna do with spikes anyway? Spear the berries before it eats them? So, muttering, I continue to play through this dirty level getting my can kicked repeatedly by the bespiked-blue-jay-trains. It soon becomes apparent to me, that given the proper number of spikes in a long enough train, bespiked-blue-jay-trains could easily dominate the world. Because of this, logically, I think we humans could do with having a few more spikes. The bespiked-blue-jay-trains may take, us, but at least we could take a few of the train with us.   ... Of course, I guess we have knifes, which are &lt;em&gt;kinda&lt;/em&gt; like spikes, but not in the over-powered bespiked-blue-jay-train fashion. It is the difference between Wolverine and a common mugger.&lt;br /&gt;&lt;br /&gt;Regardless I eventually completed the level (with 7 rings, but at least I didn't die trying). However, in the end I realize that the bespiked-blue-jay-train was &lt;em&gt;actually&lt;/em&gt; a robotic spiked snake.... which of course isn't near as cool as a fleet of bespiked-blue-jay-trains bent on world domination. So, I guess we humans won't need spike grafts to protect our selves.&lt;br /&gt;&lt;br /&gt;........... For now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5434109515850811933-6959830715307789466?l=dontteasetheslowkid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dontteasetheslowkid.blogspot.com/feeds/6959830715307789466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5434109515850811933&amp;postID=6959830715307789466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/6959830715307789466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5434109515850811933/posts/default/6959830715307789466'/><link rel='alternate' type='text/html' href='http://dontteasetheslowkid.blogspot.com/2008/05/what-is-blue-jay-gonna-do-with-spikes.html' title='What is a blue-jay gonna do with spikes anyway?'/><author><name>Vern DeMille</name><uri>http://www.blogger.com/profile/08064717514776299624</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
