Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Add date to a sql command

$
0
0

I have the following command, am looking to make the replace = Training: RunDate (where run date equals the value of when the command was ran)

update dbo.tblOrgInfo
set sOrgName = replace(sOrgName, 'Live', 'Training: 09-09-2014') where sOrgName = 'Live'

Date Value needs to be converted to 09-09-2014, the field will not allow for 09/09/2014, cant get it to work.


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>