This article is based on the a question from Jr. Developer at my company. He works with the system, where we import CSV file in our database. One of the fields in the database is DATETIME field. Due to architecture requirement, we insert all the CSV fields in the temp table which has all the fields VARCHAR. We validate all the data first in temp table (check for inconsistency, malicious code, incorrect data type) and if passed validation we insert them in the final table in the database. Let us learn about ISDate function in this blog post.
SQLAuthority News – SQL Blog SQLAuthority.com Comment by Mr. Ben Forta
Today is one of the most glorious day for SQLAuthority.com in history. Famous author of Sams Teach Yourself Microsoft SQL Server T-SQL In 10 Minutes, ColdFusion Guru, and well known evangelists Mr. Ben Forta has made comment on his blog about SQLAuthority.com. I encourage all my readers to visit comment…
Read MoreSQL SERVER – 2005 – Features Comparison Chart
This post in the response to all the readers who have asked what are the differences between SQL Server 2005 editions. The reason I have never posted article about this as Microsoft has wonderful comparison chart on Microsoft SQL Server web site. This chart explains the difference between features of…
Read MoreSQL SERVER – 2008 – Scheduled Launch at an Event in Los Angeles on Feb. 27, 2008
SQL SERVER 2008 will be launched at an Event in Los Angeles on Feb. 27, 2008. “In anticipation for the most significant Microsoft enterprise event in the next year, Turner announced that Windows Server® 2008, Visual Studio® 2008 and Microsoft SQL Serverâ„¢ 2008 will launch together at an event in…
Read MoreSQL SERVER – Count Duplicate Records – Rows
In my previous article SQL SERVER – Delete Duplicate Records – Rows, we have seen how we can delete all the duplicate records in one simple query. In this article we will see how to find count of all the duplicate records in the table. Following query demonstrates usage of…
Read MoreSQL SERVER – 2005 – List All Stored Procedure Modified in Last N Days
I usually run following script to check if any stored procedure was deployed on live server without proper authorization in last 7 days. If SQL Server suddenly start behaving in un-expectable behavior and if stored procedure were changed recently, following script can be used to check recently modified stored procedure.…
Read MoreSQL SERVER – Result of EXP (Exponential) to the POWER of PI – Functions Explained
SQL Server can do some intense Mathematical calculations. Following are three very basic and very necessary functions. All the three function does not need explanation. I will not introduce their definition but will demonstrate the usage of function. SELECT PI() GO SELECT POWER(2,5) GO SELECT POWER(8,-2) GO SELECT EXP(99) GO…
Read More