Wednesday, November 28, 2007
DDD6 Review
On Saturday I attended the 6th of the
DDD days held at Microsoft campus in Reading. This was my first DDD, although I have attended a
WebDD and the recent
SQLBits day this year.
The day was again broken into
5 sessions, with 4 streams. The sessions I attended were:
I was pleased with my session choice and gained lots from all the speakers. I combined some talks that I knew aspects about (like the Continuous Integration one) with those that I'd not come across before (ASP.NET dynamic data controls - which look really handy for admin sites etc, and Astoria). I had to do a swift session swap for session 3 as I'd sat myself down ready to learn about Business apps with WPF with
Oliver Sturm when he mentioned it was part 2 and I'd
misread the agenda. Still, I got to learn about astoria which was really interesting and sounds really useful. My final session of the day was silly yet fun as Dave and Richard led a mass schwag giveaway hosting a game of "A question of swag" followed by a game of "Swaggity Swag".
The schwag bag wasn't great, consisting of just a pen - not even a notebook this time - but the
hour of free training that
innerworkings provided is a great gift to come away with.
All in all, another great developer conference and an opportunity to catch up with some familiar faces from the previous days.
Labels: DDD6, event
// posted by Jane @ 6:28 PM
Comments:
Tuesday, November 13, 2007
VBUG Brighton - Visual Studio 2008 and .Net Framework 3.5
This evening
Madgex hosted the first of what I hope will be many
VBUG events. After a
really informative session in August on LINQ I had high hopes for this evening, and wasn't dissapointed.
Daniel Moth gave a rapid, but informative, tour of Visual Studio 2008 and some of the new features of .Net framework 3.5
As with the last event the format was a talk for about an hour, then a break for pizza and beer before heading back for another half an hour or so.

Looking at my notes, again there is a jumble of keywords to go and find out more about. The multi targeting element of Visual Studio 2008 looks great with the ability to swap which framework you're working against simply by selecting from a list. In fact, it seems like the only downside to upgrading to VS2008 is that it will have to be an all or nothing approach for any project with more than one developer - the .sln file has a different format and is the only bit which won't be compatible with VS2005. The inclusion of the Expression Web seems sensible - I remember being impressed by that when I saw a demo earlier this year at WebDD - and I'm particularly keen to see the CSS and javascript intellisense. I'm also hoping the manage styles window will help me get to grips with the precedences of element vs IDs vs classes in CSS as well!
Some of the new language features seem like they're included to be time savers (like
var and anonymus typing), which at the moment at least I can't see being of help to the developer coming along later to maintain the code. I can also imagine the
lambda expressions taking a while to get used to.
All in all, another excellent evening, and again a pleasure to see our office space being used for another community event.
Labels: Brighton, event, sussexdigital, vbug
// posted by Jane @ 10:28 PM
Comments:
Generate SQL Insert statement from table data
Years ago I stumbled upon a helpful SQL script (SQL Server 2000 and 2005) written by a chap called Keith E Kratochvil which you could point at a table in your database and which would then generate a series of Insert scripts.
I made some amendments at the time and over the next few years to make a bit more useful to me for some specific requirements, including the ability to take bits of a where clause to restrict the data coming back, allowing me to script subsets of data. I've carried this script with me from company to company, and decided it was time to share the updated script.
One word of advice, before running the generated inserts, do a replace of 'NULL' with NULL as I failed to get NULLs appended to a string without causing the whole string to become NULL.
The procedure is available
here so feel free to take a look and use it if you find it helpful.
Labels: spu_generateinsert, SQL, SQLServer, SQLServer2005
// posted by Jane @ 5:39 PM
Comments:
Wednesday, November 07, 2007
Brighton and Hove Web Awards - Brighton Bloggers is shortlisted
Web Awards Nomination Brighton Bloggers has been shortlisted on the
Brighton and Hove Web Awards list in the Best Local Online Community category.
This is vaguely amusing as it because of my involvement with the Web Awards in 2003 that Brighton Bloggers was born out of a list produced by
Joh. It was originally intended to last for the length of the festival, but I felt this was a waste and decided to create Brighton Bloggers with help, support and encouragement at the time from
Pete and
Jeremy.
Time has moved on, and the site now lists 267 bloggers who either work or live in Brighton and another successful meetup happened
just last week.
Please consider supporting Brighton Bloggers by
submitting your voteLabels: Brighton Bloggers, nomination, sussexdigital, web awards
// posted by Jane @ 7:21 PM
Comments:
Copying a database on SQL Server 2005 using Backup and Restore
I always forget to do this, so this is a reminder for me. Hope it comes in handy for others too.
One of the things I do quite often, but obviously not enough, is to create a new database based on an existing one. I've tried various methods over the years, but backup and restore seems to work reliably and without too many headaches, and it doesn't involve taking the database offline either.
So, for instance to create a new database named JaneDallawayTest from and existing database called JaneTest I would do the following:
Backup JaneTest and store the resultant file somewhere I can get hold of it from
Then restore that backup to a new database named JaneDallawayTest by executing the following SQL:
RESTORE DATABASE [JaneDallawayTest]
FROM disk = N'JaneTestBackup.bak'
WITH FILE = 1 ,
move N'JaneTest'
TO N'G:\SQLData\JaneDallawayTest.mdf' ,
move N'JaneTest_log' TO N'G:\SQLData\JaneDallawayTest_log.ldf' ,
nounload , stats = 10 , replace
GOAll that is left to do is to update the logical name for the new database in the Database Properties dialog.
Labels: SQL, SQLServer, SQLServer2005
// posted by Jane @ 3:29 PM
Comments:
Thursday, November 01, 2007
A week of skillswaps
Booking is now underway for the week of
Skillswap events which are being run during the
Brighton Digital Festival. These events are "Informal training by the local community for the local community" and I've been to a
couple before. The events are:
Danny approached me a while ago about doing a photography talk, and so I've got a couple of weeks to prepare. My plans are to do a Tips for digital photographers session initially, and I'd really like to then move on to a critiquing session where the attendees (and me!) put forward photos to be reviewed by the other attendees. This is an excellent way to learn, and I'm far from being an expert and want to learn too.
Labels: Brighton, event, skillswap, sussexdigital
// posted by Jane @ 7:29 PM
Comments: