How about on the SQL Server, for the field that has the date, make it default to todays date GetDate().
- Bruce Sorge "I'm a mawg: half man, half dog. I'm my own best friend!" On 1/23/07, Richard Colman <[EMAIL PROTECTED]> wrote: > > What is the best way to automatically insert the current date into a > data table? > ------------ > I tried something like: > > <CFSET datenow="#dateformat(Now())#"> > > With the following in the insert statement > > ... '23-Jan-07') > > Into a SQL-Server datetime column. > > Yields the error message: "String or binary data would be > truncated" > > What is the best way to do this, please? > > TNX. > > Rick Colman > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267389 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

