Insert into SQL Temp table with cfqueryparam
Has anyone successfully inserted values into SQL temp table using cfqueryparam and able to called from it?
The below codes work just fine and only failed when replaced
values ('myValue') with values (<cfqueryparam value="myValue" cfsqltype="cf_sql_varchar" >)
Appreciated if someone can take a look and let me know what is going on.
<cfquery name="myQry" datasource="myDSN" >
CREATE TABLE ##tmpTable
(
column1 nvarchar(50)
)
insert into ##tmpTable (column1) values ('myValue')
</cfquery>
<cfquery name="tmpTableQry" datasource="myDSN" >
select colum1 from ##tmpTable
< /cfquery>
<cfdump var="#tmpTableQry#">
CF11
