|
|
March 2009 Blog Posts
Ok, the storyline: A web site creates a temporary file to work with, then is supposed to delete it, because maybe space is low on the drive or whatever. There are times where the file will still be locked from our work when we try to delete it. Perhaps we did something like: {\rtf1\ansi\ansicpg\lang1024\noproof65001\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Envy Code R VS;}}{\colortbl;??\red48\green95\blue182;\red227\green213\blue193;\red46\green83\blue209;\red1\green0\blue1;\red0\green0\blue0;\red37\green146\blue65;}??\fs20 \cf1\cb2\highlight2 File\cf3 .\cf4 WriteAllBytes\cf0 (\cf6 {\b "newFile"}\cf0 , \cf1 File\cf3 .\cf4 ReadAllBytes\cf0 (\cf6 {\b "oldFile"}\cf0 ));}--> File.WriteAllBytes("newFile", File.ReadAllBytes("oldFile")); And it hasn't released the lock on "oldFile" when we get to the next statement. Oh man,...
So, lately I had the dilemma of having done a bunch of preliminary SQL work in 2008 Express, then needing to port my results over to a staging SQL 2005 server at work. I casually backed up the 2008 database and lo and behold, couldn't restore it! SSIS wasn't set up, and I had to gets stuff done ASAP! I searched on Google, and all I got were either "use SSIS" or "it can't be done." In other words, those who've done this before haven't shared with the rest of us. So a proc I wrote came in handy......
My wife's been getting on my case about having a gazillion different hard drives with everything and our mothers on them all around the house. I mean, come on everybody, she just wants her pictures in one @%$!# spot! She also "misused" Picasa, and now has a bunch of duplicates on her laptop (she doesn't read my blog, so I ain't worried she'll read that). So, out shopping for Little Liam last weekend, and we decide to pop into Circuit City's closing-its-doors blowout sale. I grabbed her a 500 GB Western Digital external drive and, when we got home,...
Archives
- September, 2011 (1)
- June, 2011 (2)
- February, 2011 (1)
- January, 2011 (2)
- December, 2010 (1)
- October, 2010 (1)
- September, 2010 (2)
- August, 2010 (3)
- July, 2010 (5)
- May, 2010 (1)
- April, 2010 (1)
- December, 2009 (1)
- November, 2009 (1)
- October, 2009 (2)
- September, 2009 (2)
- August, 2009 (2)
- July, 2009 (1)
- June, 2009 (1)
- May, 2009 (3)
- April, 2009 (4)
- March, 2009 (3)
- February, 2009 (3)
- January, 2009 (3)
- December, 2008 (1)
- November, 2008 (2)
- October, 2008 (4)
- September, 2008 (1)
- August, 2008 (1)
- July, 2008 (3)
- June, 2008 (3)
- May, 2008 (4)
- April, 2008 (1)
- March, 2008 (2)
- February, 2008 (1)
- January, 2008 (3)
- December, 2007 (3)
- September, 2007 (1)
- August, 2007 (1)
- June, 2007 (1)
- May, 2007 (2)
- February, 2007 (1)
- December, 2006 (2)
- November, 2006 (4)
- September, 2006 (1)
- August, 2006 (1)
- May, 2006 (3)
Post Categories
| |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | | 8 | 9 | 10 | 11 | 12 | 13 | 14 | | 15 | 16 | 17 | 18 | 19 | 20 | 21 | | 22 | 23 | 24 | 25 | 26 | 27 | 28 | | 29 | 30 | 31 | 1 | 2 | 3 | 4 |
|