Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 5407 Inserting into a timestamp column

Status
Not open for further replies.

GerardMcL

Technical User
Aug 5, 2004
212
IE
Hi,

I am running a proc in which an INSERT .. SELECT is fired off.

One of the columns I am inserting to is of type TIMESTAMP.
The value I am inserting is
CAST(CURRENT_TIME(2) AS TIMESTAMP(2))

But I keep getting an error back
SPL1027:E(L282), Missing/Invalid SQL statement'E(5407):Invalid operation on an ANSI Datetime or Interval value.'.

Does anyone know why this is occurring.

Thank You,
Gerard.
 
Doesnt matter got it sorted.

Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top