ltTime = datetime()
update MyTable Set DateTimeColumn = ?ltTime where Pk = ?nPk
or
update MyTable Set DateTimeColumn = getdate() where Pk = ?nPk
>Hi,
>
>I want to send to the SQL Server the following update command:
>
>
>"update MyTable Set DateTimeColumn = " + TTOC(DateTime()) + " where Pk = " + nPk
>
>
>The TTOC() does not seem to do the job as SQL Server returns an error. What would be the right syntax for sending the current Date and Time to update SQL Serrver column?
>
>TIA.