Money datatype and formatted values
Money is one of the datatypes in SQL Server and it can be used to store monetary values. It will not only accept integer and decimal values but formatted values too. For example you can express values...
View ArticleDROP command with multiple tables
There is a question in the forum where questioner asked "I created lot of temporary tables like #temp1, #temp2, #temp3, etc. Is there a way to drop them all in a single statement?" Well. Not many...
View ArticleSQL Server does not allow to create a TEMP table twice in the same batch,...
In SQL Server, a temporary table with the same name could not be re-created in the same batch, even if you drop and re-create. The following script clarifies the concept. Try by self CREATE PROCEDURE...
View ArticleUnderstanding how ISNUMERIC function works
Often I hear from people that ISNUMERIC function is not working properly and there is a bug. One example people refer is that both of ISNUMERIC('12d2') and ISNUMERIC (',') return the value 1. Well. The...
View ArticleDifferent methods to extract decimal part from a number
One of the questions asked in a forum. "What are the different methods to extract decimal part from a number?".There can be several methods. These are the ones I know. Method 1 : Substract the INTeger...
View Article