Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Is there anything else in this line of code that I might need to change?Thanks,Kurt
SwePeso
Patron Saint of Lost Yaks
30421 Posts
Posted - 2007-02-15 : 11:00:36
It is much easier with full query, but I believe this is what you want done.ELSE to_char(COMPLET, 'DD-MM-YYYY') ENDELSE CONVERT(VARCHAR, COMPLETE, 105) ENDPeter LarssonHelsingborg, Sweden
SwePeso
Patron Saint of Lost Yaks
30421 Posts
Posted - 2007-02-15 : 11:01:30
If COMPLETE column not already is DATETIME column, use thisELSE CONVERT(VARCHAR, CAST(COMPLETE AS DATETIME), 105) ENDPeter LarssonHelsingborg, Sweden
kdnichols
Posting Yak Master
232 Posts
Posted - 2007-02-15 : 11:09:54
Hello Peso,Thanks that appears to have fixed it.Any idea on the substr command?Kurt
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2007-02-15 : 11:13:13
quote:Any idea on the substr command?
Don't you have the Books Online installed ?KH
SwePeso
Patron Saint of Lost Yaks
30421 Posts
Posted - 2007-02-15 : 12:27:09
SUBSTR?You mean SUBSTRING function?There are a lot of good books for ORACLE programmers who wants to go T-SQL instead.Peter LarssonHelsingborg, Sweden
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts
Posted - 2007-02-15 : 23:08:46
Also you may find following link useful:[url]http://www.microsoft.com/technet/prodtechnol/sql/2000/reskit/part2/c0761.mspx?mfr=true[/url]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED"