-
Recent Posts
Recent Comments
Archives
- December 2020
- May 2018
- April 2018
- January 2018
- October 2017
- April 2017
- February 2017
- January 2017
- November 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- November 2011
- October 2011
- September 2011
- August 2011
- May 2011
- April 2011
Categories
Meta
Monthly Archives: September 2012
Row_Number SQL Server
Row_Number or Sequence Generator in SQL Server Is is used to generate a sequence number or a row number in a result table. That is if you want to run a query and you rank certain records in certain order, … Continue reading
Posted in SQL Server 2008
Leave a comment
Solution – Preserve Leading Zeros in Excel
If you happen to copy data from somewhere to excel (such as a data in SQL format), you would have noticed that excel does not store leading zero. There are some solutions that lets you have exact number of leading … Continue reading
Posted in Tutorials/Tips
Leave a comment
How to run javascript in asp net page_load
I tried writeline(“// “); but it did not work. Found out, you have to use RegisterStartupScript in order to run JavaSacript in ASP.NET page. More help is on MSDN
Posted in Tutorials/Tips
Leave a comment
Fix ASP.NET Menu Layout Issue in Chrome and Safari
I had this menu issue which would not render properly in Chrome and Safari but run ok in Internet Explore and FireFox. The following is the fix. Put the following code at the top of your Page_load() function of the … Continue reading
Posted in Troubeleshoot
Leave a comment
How much does a doctor visit cost in the US?
For specialist without insurance it cost me $300 to visit dermatologist (specialist). This is extremely high just for 5 minutes of doctor. Waiting excluding, the doctor is not likely to spend more than 10 min with you. Even if you … Continue reading
Posted in United States
Leave a comment
Reading null values from datatabase in C# code
If you tried reading a null value from the database such as a null date, you might have across this exception Specified cast is not valid Casting Nullable Values The following code works unless a null datetime is returned. Note … Continue reading
Bracketing on Nikon D5100
Nikon D5100 come with bracketing but it took me a while to use it. I will explain here how it be use. I am not impressed by it btw for the couple of pictures that I took with it just … Continue reading
Posted in Tutorials/Tips
Leave a comment
Condition on null does not work with =
What do you expect from the following code? Will the block inside if be executed? IF ( @ID != NULL ) BEGIN UPDATE inventory SET count = 5 WHERE id = @ID END The statments inside If will never be executed because it will always evaluate false. The reason it equal (=) … Continue reading
Posted in Troubeleshoot
Leave a comment
Object reference not set to an instance of an object.
How to troubleshoot Object reference not set to an instance of an object in C#. Put a break point in the code, execute the code Inspect the value where you are getting this error Inspect the value you are assigning … Continue reading
Posted in Troubeleshoot
Leave a comment
Quick SQL Scripts
Find start date of the year in SQL SELECT Cast(Datepart(yy,Getdate()) AS VARCHAR(4)) + '-1-1' year
Posted in SQL Server 2008
Leave a comment