Sunday, June 04, 2006

While reading through the blogs I'm subscribed to, for the ones interested I use RSSBandit, I found these interesting links(1) on the blog of Smetty's Soapbox.

On figure 1 you can clearly see that the forename Kris was quite popular in that time. On figure 2 you'll see that my last name van der Mast is most popular where I live. For the ones who know a bit about the geography of Belgium: I live in Essen which is at the top of the red colored part on the map.


Figure 1: Kris was quite a popular name when I was born in 1975.


Figure 2: van der Mast is most popular in the province of Antwerp.

Grz, Kris.

(1): Forename & Lastname.

Sunday, June 04, 2006 8:57:02 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Saturday, June 03, 2006

Like most ASP.NET developers I also first installed SQL Express 2005 together with visual studio.net 2005. After a while however I decided to get it off my dev laptop and install the full blown SQL Server 2005 instead because I wanted to test against this database and because I also needed it for an internal course at work. Things went fine, I also played around with the aspnet_regsql tool to make a dedicated database for my ASP.NET 2.0 services like Membership. I even changed the default setting for the LocalSqlServer connection string in my machine.config file in order to not be forced to override that setting in each new webproject I created.

After a while I felt the urge to reïnstall SQL Express 2005 because I downloaded several example sites and starter kits. Although it's quite easy to attach a .mdf file to SQL Server 2005, you can read my blogpost about it here: Attaching a .mdf file when you don't have the .ldf file available.

The installation went smoothly, I could see the extra database in SQL Server Management Studio but when I wanted to add a new local database, ie SQL Express database, in the App_Data subfolder of a web project I got this error:

"Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

Huh?

Well I search around, gained some knowledge about the problem and thought I share it with you:

First you'll need to open up SQL Server Configuration Manager. Navigate to that in the menu like Microsoft SQL Server 2005 > Configuration tools > SQL Server Configuration Manager. Take a look at figure 1:


Figure 1: The SQL Server Configuration Manager tool.

Double click, or right click and choose Properties, of the selected line and you'll get the properties window which you can see in Figure 2:


Figure 2: The properties window

You'll need to make sure that the Local system is selected.

The second part of the solution's to delete the following folder on your hard drive: c:\Documents and Settings\[user]\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS(1). This folder's used to store information and apparently it messes up the proper working of SQL Express.

Grz, Kris.

(1): http://forums.microsoft.com/msdn/showpost.aspx?postid=98346&siteid=1

Saturday, June 03, 2006 6:23:25 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [2]  |  Trackback

Microsoft launched the download site for SQL Express with advanced services.

Overview:

Microsoft SQL Server 2005 Express Edition with Advanced Services (SQL Server Express) is a new, free, easy-to-use version of SQL Server Express that includes a new graphical management tool and powerful features for reporting and advanced text-based searches. SQL Server Express provides powerful and reliable data management tools and rich features, data protection, and fast performance. It is ideal for embedded application clients, light Web applications, and local data stores.

SQL Server Express with Advanced Services has all of the features in SQL Server 2005 Express Edition, plus you can:

  • Easily manage and administer SQL Server Express with a new easy-to-use graphical management tool -- SQL Server 2005 Management Studio Express (SSMSE).
  • Issue full-text queries against plain character-based data in SQL Server tables. Full-text queries can include words and phrases, or multiple forms of a word or phrase.
  • Run SQL Server Reporting Services reports on local relational data.

Free to download, free to deploy, and free to redistribute as an embedded part of an application, SQL Server Express with Advanced Services is the fast and easy way to develop and manage data-driven applications with powerful built-in reporting and full-text search functionality.

Grz, Kris.

Saturday, June 03, 2006 2:47:28 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Friday, June 02, 2006

A lot of sites allow people to upload a file like pictures, word documents, ... or even videos. ASP.NET provides an easy way to do this(1).

What not everyone seems to know that ASP.NET only allows, by default to upload 4Mb of formdata to the server. Endusers can get frustrated when they try to upload their large sized document or video and see, after wasting bandwidth and time, that they don't succeed. This leaves your endusers with a bad taste in their mouth about your application and most likely they won't return or go to the competition.

However, as with many things in ASP.NET, this can be easily adjusted. Open up the web.config file of your current application and check the line, or add it in case it isn't already in the config file, <httpRuntime /> (2). This has an attribute maxRequestLength that you can set. The number represents the amount of kilobytes that the total form can transfer to the server. Setting this to a higher number than the default 4098 allows you, the developer, to let endusers upload larger sized files.

 

Grz, Kris.

(1): Uploading Files in ASP.NET 2.0, Uploading Files Using the File Field Control or Uploading in ASP.NET to name a few.
(2): Take a look at the documentation for other settings that you can make.

Friday, June 02, 2006 2:31:52 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Wednesday, May 31, 2006

Just found out about this one: http://www.seewindowsvista.com/. It has some smooth looking videos available organised into 4 categories:

  • Connecting with people
  • Managing the big picture
  • Turning information into action
  • Expanding your possibilities

Another site that was release recently is http://www.iis.net/, a site totally dedicated to IIS6 and the new upcoming IIS7. Also be sure to check out the virtual labs.

Some other sites about upcoming technologies that'll ship with Vista, and will also be available for Windows XP with Service Pack 2 and Windows server 2003:

  • WPF (Windows Presentation Foundation, formerly known as Avalon)
  • WCF (Windows Communication Foundation, formerly known as Indigo)
  • WF (Windows Workflow Foundation)

Of course, people who know me, know that http://forums.asp.net/ is still one of my most visited sites. Not only to help out people there but also to still learn from others too.

Grz, Kris.

Wednesday, May 31, 2006 7:51:53 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback

I've read some good feedback on this tool before and also installed it at work where I use SQL Server 2005 Management studio on a daily basis.
Once you get used to Intellisense in visual studio.net you always get that creepy feeling: where's Intellisense when you want to query your database? Well, SQL Prompt fills that gap and saves you valuable time while developing or creating another inner join. The tool can be downloaded here for free until September 1st 2006.

Wednesday, May 31, 2006 7:04:51 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Monday, May 29, 2006

Hi,

ASP.NET 2.0 is promoted quite heavily by Microsoft and other companies or dedicated sites. What most people seem to love are the starter kits which have several dedicated members that like to extend these starter kits and expose these on the internet. If you would be interested in extending some of the starter kits, or just have one deployed as your own personal website, you can download them here.

Most of these starter kits ship with a sample database which normally consists of a .mdf and a .ldf file. Not all people have SQL Server 2005 Express edition installed but rather only SQL Server 2005. It's quite easy to attach such an Express database to SQL Server 2005 when you have both files available but as I found out in the past sometimes only the .mdf file is provided which prohibits one to attach the database the normal way.

Luckely there's a special procedure available: sp_attach_single_file_db.

An example on how to use it:
EXEC sp_attach_single_file_db @dbname = 'pubs', @physname = 'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs.mdf'

The @dbname = and the @physname can be omitted if you like.

Grz, Kris.

Monday, May 29, 2006 7:25:24 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Saturday, May 27, 2006

Hi,

after been asked multiple times by peers and reading a lot of blogs myself, I also decided to start blogging. Since the urge to start blogging is mainly driven from the idea to share technical information, you can expect to see mainly technical content on this blog.
That's also the reason why I chose to have the Hello, World! as subject for my first blog post. Hello, world! is quite commonly used in the world of programming and if you like to know more about it I would suggest that you take a look at this article on wikipedia.

So, who am I?
Well, I'm best known online for my efforts on the ASP.NET forums where I'm a dedicated moderator and top 10 contributor nicknamed XIII.
If you want to learn more about me you can check out the About page.

Well, that's it for now...

Grz, Kris.

Saturday, May 27, 2006 11:53:06 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [4]  |  Trackback