Conversion failed when converting date and/or time from character string while inserting datetime

There are many formats supported by SQL Server – see the MSDN Books Online on CAST and CONVERT. Most of those formats are dependent on what settings you have – therefore, these settings might work some times – and sometimes not. The way to solve this is to use the (slightly adapted) ISO-8601 date format … Read more

The wait operation timed out. ASP

If you found the exact error “The wait operation timed out” then it is likely you have a database call that took longer than expected. This could be due to any number of things: Transient network problem High SQL server load Problem with SAN, RAID, or storage device Deadlock or other form of multiprocess contention … Read more

The wait operation timed out. ASP

If you found the exact error “The wait operation timed out” then it is likely you have a database call that took longer than expected. This could be due to any number of things: Transient network problem High SQL server load Problem with SAN, RAID, or storage device Deadlock or other form of multiprocess contention … Read more

What is an index in SQL?

An index is used to speed up searching in the database. MySQL have some good documentation on the subject (which is relevant for other SQL servers as well): http://dev.mysql.com/doc/refman/5.0/en/mysql-indexes.html An index can be used to efficiently find all rows matching some column in your query and then walk through only that subset of the table to … Read more

SQL WITH clause example [duplicate]

The SQL WITH clause was introduced by Oracle in the Oracle 9i release 2 database. The SQL WITH clause allows you to give a sub-query block a name (a process also called sub-query refactoring), which can be referenced in several places within the main SQL query. The name assigned to the sub-query is treated as … Read more