i think you should use
SELECT DATEDIFF(day,'2014-06-05','2014-08-05') AS DiffDate
and result is
DiffDate
61
More Related Contents:
- How do I update a value in C# and SQL Server? [closed]
- Search SQL by date ASP.NET
- Sql: Incorrect syntax near ‘(‘ [closed]
- Is there a good LINQ way to do a cartesian product?
- Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints
- Entering keys manually with Entity Framework
- Read SQL Table into C# DataTable
- Pass table valued parameter using ADO.NET
- DropdownList DataSource
- Stop SQL query execution from .net Code
- ASP.NET ODBC Query with parameters
- What is passing parameters to SQL and why do I need it?
- How to make LINQ execute a (SQL) LIKE range search
- Index (zero based) must be greater than or equal to zero
- no overload for method “ToString” takes 1 arguments
- Database Error: There is no row at position 0
- How to Deserialize XML document
- Path.Combine for URLs?
- Force download of a file on web server – ASP .NET C#
- How to retrieve data from a SQL Server database in C#?
- how to call a variable in code behind to aspx page
- Sending an array of values to Oracle procedure to use in WHERE IN clause
- Write PDF stream to response stream
- How to set attributes values using reflection
- How can I handle forms authentication timeout exceptions in ASP.NET?
- SQL/C# – Best method for executing a query
- Inline code in head tag – ASP.NET
- How require authorization within whole ASP .NET MVC application
- What is the difference between Debug Mode and Release Mode in Visual Studio 2010? [duplicate]
- Accessing controls created dynamically (c#)