Ask a Question related to Coldfusion Database Access, Design and Development.
-
Conti #1
MSAccess query : detect data type
"deleteID" in the following query could be either alpha or numeric.
How to modify the query to accomodate both cases?
<CFQUERY datasource="#dsn#">
delete from #table#
Where #deleteID#='#Evaluate(deleteID)#'
</CFQUERY>
ThankYou
Conti Guest
-
Detect CFQuery Column Data Type
Is it possible to detect the data type of a column in an ODBC Select CFQuery with MS Access or SQL Server? This solution will save me a lot of... -
long query time, oracle clob data type
I am getting some very long query times (+8 hours) on a very simple query where the fields are not null. This is using ColdFusion MX7, just a... -
retriving data from memo data type of msaccess to asp.net
hi all, How i can access the data from MEMO style storage of MS ACCESS using sql query.Can any body give the function ie (Areader.(?)).Which... -
ASP - MSAccess (OLE Object Data Type)
Is it possible for me to retrieve an OLE Object(.JPEG format) datatype and display it on the browser? -
Data type query
Hi I have to specify in a table certain values for: Minutes duration spent on phone-eventduration, the eventdate-which date, and event time- exact... -
jdeline #2
Re: MSAccess query : detect data type
You could do something like the code below. If the first delete throws an
error, the second delete (without the quote marks) will execute.
<CFTRY>
<CFQUERY datasource="#dsn#">
delete from #table# Where #deleteID#='#Evaluate(deleteID)#'
</CFQUERY>
<CFCATCH
<CFQUERY datasource="#dsn#">
delete from #table# Where #deleteID#=#Evaluate(deleteID)#
</CFQUERY>
</CFCATCH>
jdeline Guest
-
GreatBlue #3
Re: MSAccess query : detect data type
I have the same issue but I have several fields and I need to know if they are
numeric, date, or text data types. I can test the data, but I need to know
what type of field is in the database column.
Is there a way to test for the ODBC table columns data type in MS Access and
SQL Server?
Thanks.
GreatBlue Guest
-
mxstu #4
Re: MSAccess query : detect data type
Conti,
What kind of variables are #table# and #deleteID#? If they are not local
variables and are URL or FORM variables instead, this is a potentially
dangerous query. If the page containing this code has poor security, your user
could access the page directly and potentially delete information from your
tables. There is also sql injection to think about.
mxstu Guest



Reply With Quote

