SQL Server

List of ORM libraries available for .NET and the best one

An Object Relation Mapping(ORM) library helps developers to create data access applications by programming against a conceptual model instead of programming against a relational database model.  ORMs bring lot of advantages and few of the prominent ones are -  RDBMS independent data access layer development, rapid application development, huge reduction in code, auto generation of …

List of ORM libraries available for .NET and the best one Read More »

What Is The Difference Between DateTime and DateTime2? Which One To Choose?

SQL Server 2008 introduced several new data types and DateTime2 is one among them. In the earlier versions of SQL Server developers had only one data type option to save date & time values in database – DateTime. Now with the introduction of DateTime2, developer are given two options and this post explains what is …

What Is The Difference Between DateTime and DateTime2? Which One To Choose? Read More »

Get Date From DateTime Field (SQL Server)

While writing SQL Server queries, often I need to extract date part from DateTime columns/variables and it’s very easy to do that: SELECT convert(varchar,getdate(),101) Bonus: How To Retrieve Time Part Alone From DateTime Field Here is the bonus tip to get the time part alone from DateTime fields SELECT convert(varchar,getdate(),108) Hope this helps you.

How To Resolve “Schema Compare does not support SQL Server 2008” Issue Of Visual Studio Team System 2008 Database Edition

I wanted to synchronize a SQL Server 2005 database with SQL Server 2008 database using Visual Studio Team System Database Edition. When the synchronization process is launched, Visual Studio 2008 flashed an error saying i don’t work with SQL Server 2008. The exact message displayed by the system is         Schema Compare does not support …

How To Resolve “Schema Compare does not support SQL Server 2008” Issue Of Visual Studio Team System 2008 Database Edition Read More »

Fixing LINQ to SQL Issue: Stored Procedure Definition Returns int Instead of ResultSet

Problem Today I was struck with an annoying problem while generating LINQ to SQL dbml file for a stored procedure using Visual Studio 2008. When the stored procedure is dragged and dropped on the DBML designer, Visual Studio is generating wrong signature for the stored procedure output: instead of returning a result set as output, …

Fixing LINQ to SQL Issue: Stored Procedure Definition Returns int Instead of ResultSet Read More »