Archive for December, 2009

Once again Saturn opens the door

December 14th, 2009 Comments off

Saturn SPL at Technopark requires PHP professionals. For more information you may contact +91-471-2527000.

* Only personnel with minimum one year need to apply
* Knowledge in ExtJS ui library, MySQL etc added advantage
* Knowldege and experience in popular PHP IDE, with remote debugging would be appreciated
* Package will be at par with industry standards.

Categories: PHP openings Tags: ,

Migration from MySQL to MSSQL our solutions – Continued

December 14th, 2009 1 comment

In the previous post, I had specified that a code analysis would be presented later on, which is happening now. Though I am not permitted to abstract the whole database abstraction, which would otherwise divulge the core business logic of the system too, I do expect that the following would be enough to guide a MySQL PHP developer to port his application to MSSQL 2005. Mostly the compatablities are maintained. But for the database design, we had to let away some of the wonderful features from MySQL.

We started by a code auditing and reworked the system such that we did not use any group_concat through out the system. Also all timestamp and datetime fields were changed to varchar(19) since we were already feeding those fields with the php function date’s return value or ‘now()’. But there was quite a handful of areas where we were using STR_TO_DATE and with different formats. So this had to be handled in its own way. And it is here we started our regular expression war path.
Read more…

Migration from MySQL to MSSQL our solutions

December 11th, 2009 2 comments

Last post I did had all of my feelings, and despair, and now I am sure those were out of sheer negligence and mostly because I was unaware of the MS SQL product. Though I still do not agree with certain things like the row_count workaround for the limit feature, and escaping of quotes. But for our project we could more or less maintain a streamline by using the same code base for MySQL, SQLite3 and MSSQL 2005. Will try to explain this across a couple of posts.

Read more…

Categories: General Articles, mysql Tags: ,

Porting application from MySQL to MSSQL

December 6th, 2009 No comments

At first I thought it should be a challenge, though I did not expect it to be too tough, since we were already using a custom db wrapper. Well it turned out to be well too heavy a nightmare. And there was situations where I even considered retiring from life. I pity those who are paying thousands of hard earned money to buy such filthy crap.
Read more…

Categories: Code Snippets Tags: ,

Convert MySQL Database to SQLite3 Database

December 3rd, 2009 6 comments

For a cd based time limited working copy, of one of our products, I decided to port our mysql application to sqlite3. Since we had about 70 tables, and all with optimized indexes, and about 24 user defined function 3 triggers and 12 procedures, normally anyone would have thought of simply getting along with the mysql system itself. But I wanted to face the challenge. Thanks to Rob Cameron for the shell script published on his blog RidingTheClutch, Convert a MySQL database to a SQLite3 database, which sparked my thoughts.
Read more…

Categories: Code Snippets Tags: ,