Essential MySQL Functions

MySQL Functions

MySQL can do far more than just insert, update and select data. In fact the world’s most popular open source database has a whole host of incredibly useful functions built in that you might never know about until you find one day that you need them – and then you wonder how you coped without them!

Continue reading ‘Essential MySQL Functions’ »

How to Choose the Optimal MySQL Data Type

The MySQL relational database management system (RDBMS) supports a wide range of data types. The data type that you chose for your table columns is important because it determines how MySQL will store your data. It’s possible that any one of multiple data types could be used to store a piece of data, but which one is the best or optimal data type to use?

Continue reading ‘How to Choose the Optimal MySQL Data Type’ »

Redirect Single Pages with ASP.NET

The Goal

I recently had to redirect an old website to a new domain. The old domain had 11 pages indexed by Google but I only needed them to redirect to the home page of the new domain, rather than all having separate redirects to new URLs.

If I were using Apache this type of redirect would be easy to implement with a .htaccess rewrite rule. Therefore, I expected that Microsoft’s IIS web server would have a similar scripting method to redirect a whole website to a new domain.

(This was a shared hosting account so access to the IIS sever itself was not possible.)

Continue reading ‘Redirect Single Pages with ASP.NET’ »