HowTo: Generate a Mandelbrot with ASCII Art using TSQL

Posted in General, Technology on November 19th, 2008 by Deems
Actual Mandelbrot image generated  

 

 

Actual Mandelbrot image generated

Okay, I’m a programmer so by nature I enjoy these kinds of things but I just couldn’t resist sharing with you. 

Just for comparison purposes the image on the right is a computer generated image of a Mandelbrot that I’ve converted to grayscale for comparison. 

The Mandelbrot Set image below was generated using less than 50 lines of TSQL code using ASCII characters – I just used a really small font-size in Notepad and then after capturing it inverted the colours for better effect as an image. [via The Daily WTF]

 

ASCII characters used to create a Mandelbrot

ASCII characters used to create a Mandelbrot


Tags: , , , , , , ,

SQL Server 2008 Management Studio – Saving changes is not permitted error.

Posted in General, Technology on October 20th, 2008 by Deems

We’ve recently upgraded our development laptops with SQL 2008 from SQL 2005. Today I was trying to create a new database for a client within the management studio and every time I decided, for example, to change a column that was defined nullable to not nullable and tried saving my design, which in turn would save the table changes, it gave me the following error:

Now, I understand the need for potentially re-creating the table if for example you had an existing table where a column was nullable and it contained data then you wanted to make it not nullable (without a default value) it would correctly so moan. But you would think that the Microsoft devs would build a system intuitive enough to know that where there isn’t any data in the table yet, because you’re designing the schema, it could automatically drop and re-create the table and any associated relationships.

Needless to say, to prevent this from happening to you – go into the Tools -> Options and click on the Designers item in the tree menu on the left and make sure “Prevent saving changes that require table re-creation” is not ticked as below:

Hope that helps someone else too!


Tags: , , , , , , ,