Monthly Archives: April 2008

3 posts

[Ubuntu]: How to install VMWare Server 2.0 Beta on Ubuntu 8.04

Not-so-good news: the Linux installation package of VMWare Server does not have a user-friendly graphic user interface. And very likely you will need to build the package yourself on your Linux box. It is why it is not easy or straight-forward to install VMWare Server on Ubuntu. (It’s a shame that the VMWare development team does not have a deb package for Ubuntu, or a working rpm package for Fedora Core) Download VMWare Server 2.0 […]

[WinForm] How to dynamically add a drop down list in datagridview control

Scenario: You need to dynamically add a drop down list in a DataGridView control in a WinForm. Requirements: The items of the drop down list are dynamically bound with data from database. Solution: 1. Connect to database and retrieve data into a datatable, i.e. dtRanks; 2. Create a DataGridViewCombBoxColumn, set necessary properties of the CombBox column, then add it to the GridView control: DataGridViewComboBoxColumn ranks = new DataGridViewComboBoxColumn(); ranks.DataPropertyName = “TestID”; ranks.Name = “TestID”; ranks.HeaderText […]

MS SQL Server Express Error 5123 When Attaching a Database

I have been using MS SQL Server Management Studio Express to attach and detach my database for some time and have not had any problems until today. When I tried to attach a database, MS SQL Server Management Studio Express gave me error 5123: Failed to retrieve data for this request. (Microsoft.SqlServer.Express.SmoEnum) Additional Information: … CREATE FILE encountered operating system error 32(The process cannot access the file because it is being used by another process.) […]