Question
setting timestamp
Hi
In my MSSQL server I have a table column called timestamp of type timestamp.
In my Coldfusion file, I set a parameter called 'timestamp' = Now(), and cfsqltype="CF_SQL_TIMESTAMP" . However, when I tried a database query to insert 'timestamp' into SQL, it resulted in the following error msg:
[Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert an explicit value into a timestamp column. Use INSERT with a column list to exclude the timestamp column, or insert a DEFAULT into the timestamp column.
Should I be doing something differently? I tried setting type to string etc but nothing is working for me and I have spent hours on this.
Thanks
In my MSSQL server I have a table column called timestamp of type timestamp.
In my Coldfusion file, I set a parameter called 'timestamp' = Now(), and cfsqltype="CF_SQL_TIMESTAMP" . However, when I tried a database query to insert 'timestamp' into SQL, it resulted in the following error msg:
[Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert an explicit value into a timestamp column. Use INSERT with a column list to exclude the timestamp column, or insert a DEFAULT into the timestamp column.
Should I be doing something differently? I tried setting type to string etc but nothing is working for me and I have spent hours on this.
Thanks
