My friend has been working in a Software Company as a “Database Developer” for the last couple of years. When we met for some reason, most of the time I find out that he is very upset. Several times, I asked him why he was looking so upset, and every time he didn't reply to my question.
One evening, he came to my home and told me that he didn't know why his boss was always getting angry when he altered the Microsoft SQL Server database objects such as storedProcedure, functions, views, etc.
I just smiled and said, "Don’t worry, my friend, I will show you why."
In this section, I would link to show you why
DROP AND CREATE
database objects is much better than the
objects. Let’s consider the scenario listed below:
(i) For example, we will create a simple storedProcedure name “
(ii) Get that storedProcedure information from the system table by executing “
”. Figure (a) shows the created time, after creating and performing
(iii) Record the storedProcedure created time.
(iv) After few minutes, alter the storedProcedure and do the scenario (ii) again.
(v) Few minutes later, do some update to the storedProcedure and this time we do not use
, we use
DROP AND CREATE
process. Finally, do the scenario (ii) again. Figure (b) shows the created time which is updated, after creating and performing
DROP AND CREATE
Do you find anything that makes sense; I hope you got the point, after creating an SQL database object and you alter over and over again, the created time of that object remaining the same. Sometimes, we need to track database object modification information.
So I would always prefer “
DROP AND CREATE” rather than the
A highly experienced leader with successful track record of brand management, product innovations and corporate communication. Some successful product innovations have also achieved and awards “Most Valuable Professional” (MVP) at 2010 and 2011 by CodeProject.com and also selected as a mentor of CodeProject.com. Published over 100 technical articles in various software development resource sites (i.e,CodeProjetc.com, Microsoft, IEEE & IBM -In progress) and verious IT Forums, Blogs as well.
Over ten years of professional experiences in ICT field having extensive experience in formulating corporate vision and long term strategy. Leading development related functions including design, services, data management and analytics, customer experience management, content services, digital analytics and optimization.
An individual with results-driven approach and relentless in pursuit of excellence from a business and organizational standpoint. Believes in transparency, commitment and teamwork.
Specialties: Developing client-server with multi-tier application, database design, web based business software solutions, enterprise applications, google analytics, etc., for Windows / Mac using Microsoft SQL Server, Oracle, MySql, PS, Visual C#, R, VB.NET, ASP.NET, PHP, API, MVC, WebAPI , Add-In Visual Basic etc,. I have also more than two years’ of strong experience in mobile-VAS (platform development).
Points of Interest: Research and development where technologies used in business research areas, including (few stuff):
1. Urban and rural sectors to improve people’s lifestyle, better medical facilities, education, social business etc.
2. Biometric device integration with several platforms.
3. Social security services.
4. Eager to work with new technology.