| Anton 的个人资料CodeDebate照片日志列表 | 帮助 |
|
2月28日 Hands-on LabsThere are several events running world-wide at the moment, but you can get the labs for learning without attending by going here: http://www.virtualizationevents.com/ 2月27日 ODBC DateTime FormatI'm always very careful to not touch a DateTime variable in any way other than with Framework code. The moment you convert it to a string, things get complicated very quickly and it gets progressively worse as the string representation gets manipulated and heaven forbid, changed. So today I learned something new: there is a standard ODBC string format (link is to a local installation of SQL Books Online) for dates that SQL will always parse correctly, not by luck! It looks like this for a date: { d '2007-01-31' } And this for a full DateTime: { ts '2007-01-31 23:45:45.1234' } Writing a SQL statement that will always work is easy with that in hand (please rather use Parameterized Queries if at all possible!), as below: SELECT * FROM MyTable WHERE SomeDate > { d '2007-01-31' } TFS Restore - Correction!To all my students who I told backups of TFS was easy: true!
To any of you who thought I meant restore was easy: NOT!
I'm currently writing up a Disaster Recovery document for a client and I can tell you, the number of things that can go wrong is staggering. As I said in class: if you haven't successfully restored your backup, you don't have a backup!
Restore Instructions for when you backup on one machine (in workgroup) and restore it on a new installation. 2月25日 ArrivedThis has been the longest continuous effort for me to simply go from A to B. Thankfully the luggage arrived with me and though the hotel's shuttle didn't have me on their list, at least they were still there when I got out. Three hours of good sleep later, we're now ready for the week! And a Good Sleep it was: slept through a missed call and two alarms :) ESB->LHR->{JNB}->LUNLast time I passed through JNB (Johannesburg) to LUN (Lusaka), I had to first go through passport control, get my luggage and then check in all over again. Not to mention that they couldn't issue my ticket and I had to buy another and have the travel agent sort it all out afterwards. This time I got my connecting flight with SAA. They have an international transfer desk, only they don't issue tickets at said desk. I should add they were also unwilling to issue me a ticket at Heathrow (already paid! on my itinerary already! what's the problem? mumble...). So now I'm standing here waiting for a runner to come back from a ticket desk somewhere in the building... At least I have like three hours. Soon, oh so very soon I'll be in another departure lounge with hope rekindled: is there a shower? 2月24日 British Airways AirportsAs if my travel today isn't a rough enough trip: BAA has managed to run LHR to not only fail at handling baggage (I'm at a five-count for left-behind luggage), but having five hours during which to take a shower, there is none available. From one terminal to another, from "out of order" to "closed" to "maintenance" to "troubled passenger locked himself in the shower", to "Lounge Closes at 14:00", to... Seriously? Heathrow. The Heathrow. Four Terminals. Number Five on its way. And in the space of five hours, they can't find, fix or otherwise organise a shower for a passenger. So after a four hour flight from Turkey this morning, I now get to board for a 10(?) hour flight from LHR to Johannesburg. My poor fellow passengers sitting around me. The poor passengers on the flight from JNB to LUN (Lusaka) tomorrow late morning! 2月23日 36 hoursTomorrow morning, 9am flight. So be at the airport at 6am? Ouch.
4 hours+ flying from ESB (Ankara, Turkey) to LHR (London Heathrow). Arrive noon.
Get bags, send some books home by post, check in for flight south.
Many hours from LHR to JNB (Johannesburg, South Africa).
Get bags, check in for JNB to LUN (Lusaka, Zambia).
Arrive in Zambia just after noon on Sunday. Full day and a half later than intended. At least I'll be useful again on Monday since the time zones aren't changing... Enterprise ArchitectI am right now sitting in a presentation on Enterprise Architect. Not VSTS' Team Architect Edition, but rather an add-in for Visual Studio. The presentation is in Turkish, so I have no idea what the guy is saying, but I am very impressed with what I'm seeing on screen! I will be installing this today already; if you want to see more, here is some tutorial videos. VistaReasons to like Vista (no I don't mean "chicken", my Latvian friends!). This is not what most people would look for when evaluating a new OS, but for the geeks out there, this is like candy! 2月22日 VPC2007Check this out: if you have dual monitors, ALT-ENTER your VM. Like before, yes? NOT: use an application on the other monitor: the VM doesn't minimize like before. This is now my favorite feature in VPC. May even make me use Virtual Server a little less frequently :) 2月21日 BisSubscribeYes it allows you to create and delete subscriptions, but knowing the subscription ID would be really handy. So you dive into the database and... well, no. Here's an easier way: EventSubscriptionTool Filing BugsA student recently mentioned this: TFS Bug Snapper - it doesn't work for me with my custom process template (or perhaps another issue I haven't discovered yet), but if you're having pain with it, you can always fall back on the (same link) Clipboard Image Monitor: press PrintScreen, Add Bug, Upload, browse to temp folder: your image will be there as a file already. Hard Disk FailuresNow here's a lot I didn't know about hard disk failures! For a translation (the above is a tough read), take a look at StorageMojo. 2月20日 Live WriterTesting Windows Live Writer Beta. And this is very much an offline test since just after I installed it and launched it, I was no longer able to log in to Live.com. Sorry guys! Update: download link Tough Weekend AheadDue to a schedule mistake with the training in Turkey, I won't be able to make my usual Friday night flight direct from Heathrow to Lusaka. On Saturday morning I will fly from Ankara to Heathrow, hang out there for several hours and then take the overnight flight to Johannesburg. From JNB to Lusaka in the morning. There goes the weekend but at least I get there before work starts on Monday morning.
So from Turkey to Zambia to England (working close to home in Manchester the week of March 5th) to Japan (for holiday). Then home to pack and then off to Dubai for the GEEKs conference... Code ReviewNot that I agree with everything, but this is the first doc I find that has a reasonable discussion about reviewing managed code.
SQL 2005 SP2VarDecimal! Yes, you saw that right. VarDecimal. How awesome is that. Yet one more thing developers can be ignorant about in a good way. Now I can err on the side of varchar(max) and vardecimal.
More about vardecimal: http://blogs.msdn.com/sqlserverstorageengine/archive/2006/11/13/enabling-vardecimal-storage-format.aspx
But wait, there's more: Logon Triggers - auditor heaven.
And the bug that keeps you from using SQL Express Management Studio to back up an MSDE DB is fixed.
Just one catch: logon triggers and vardecimal is for Enterprise Edition only. Fine, be like that. But can we please have snapshots on Express? Why? Every single upgrade done in an installer can make brilliant use of it: snapshot, upgrade, done. Or more likely, snapshot, upgrade, failure, revert to snapshot... VPC 2007 Available!Now available and at first impressions, faster than Virtual Server! More better news: new VM Additions and support for Vista both as guest and host. I'm going to try and install the VM additions in a VM running inside Virtual Server and see what happens :) 2月16日 Big DaddyYou think VS' web admin is lame? VPC's Disk Wizard is a little better. If you're looking for a jolt, check out www.codeplex.com/bliss and grab the Diff toy. VHD Diff on steroids.
(hotel internet is keeping me from logging into CodePlex so will upload a little later)
Next Diff feature: "intellisense" on the new file's filename: pick a USB disk's drive letter, use existing file's name, append .diff.vhd, etc. |
|
|