Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Inserting datetime using cfqueryparam in a SQL_Server database.

$
0
0

<cfqueryparam cfsqltype="cf_sql_datetime" value= #NOW()#>

 

Yields the error:

[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting datetime from character string.

 

I have also tried:

<cfqueryparam cfsqltype="cf_sql_datetime" value= #createODBCdatetime(NOW())#>


and numerous other variations to no avail.

 

BUT

 

Inserting:

#NOW()#


Viewing all articles
Browse latest Browse all 5794

Trending Articles



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