CONVERT(datetime, '24.04.2012', 104)
Should do the trick. See here for more info: CAST and CONVERT (Transact-SQL)
More Related Contents:
- Can I use the MERGE statement in SQL Server 2005?
- Insert results of a stored procedure into a temporary table
- Check if table exists in SQL Server
- Levenshtein distance in T-SQL
- Select query to remove non-numeric characters
- How important is the order of columns in indexes?
- Using the result of an expression (e.g. Function call) in a stored procedure parameter list?
- Cannot truncate table because it is being referenced by a FOREIGN KEY constraint?
- best way to convert and validate a date string
- Convert Xml to Table SQL Server
- T-SQL Pivot? Possibility of creating table columns from row values
- Drop all the tables, stored procedures, triggers, constraints and all the dependencies in one sql statement
- For Nvarchar(Max) I am only getting 4000 characters in TSQL?
- How do I group on continuous ranges
- “select * from table” vs “select colA, colB, etc. from table” interesting behaviour in SQL Server 2005
- Find non-ASCII characters in varchar columns using SQL Server
- Is it possible to perform multiple updates with a single UPDATE SQL statement?
- t-sql get all dates between 2 dates [duplicate]
- Extracting hours from a DateTime (SQL Server 2005)
- Incorrect syntax near the keyword ‘with’…previous statement must be terminated with a semicolon
- How to pivot table with T-SQL?
- Testing for inequality in T-SQL
- Replace a newline in TSQL
- T-SQL – function with default parameters
- How to use an Alias in a Calculation for Another Field
- How do you copy a record in a SQL table but swap out the unique id of the new row?
- Cannot find either column “dbo” or the user-defined function or aggregate “dbo.Splitfn”, or the name is ambiguous
- Poor Man’s SQL Pivot. List Questions as Columns and Answers per User in one row
- Compare dates in T-SQL, ignoring the time part
- Sql Server : How to use an aggregate function like MAX in a WHERE clause