Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ratbags
Starting Member
1 Post |
Posted - 2009-10-19 : 04:22:23
|
| I am trying to use the "Insert Into" type "CFQUERY" and insert a date into a field.This date has been input by the user on a web form using the syntax "<input type="text" name="DateInTheatres"...>The query is <CFQuery datasource="blah">Insert into Films(<other fields>,DateInTheatres)values(<other fields>,#CreateODBCDate(Form.DateInTheatres)#)</CFQuery>The above code does not seem to work because the "#" are not automatically put to the left & right of the date so when the sql resolves you get 12/10/2009 (for example) no quotes, nothing.How can I fix this?many thanksPaul |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-10-19 : 04:35:08
|
In SQL Server, you use single quote to enclose date values. N 56°04'39.26"E 12°55'05.63" |
 |
|
|
|
|
|