Ask a Question related to Coldfusion Database Access, Design and Development.
-
zorg #1
Cant delete a row using a UUID as the PK
I'm trying to delete a row - that uses the datatype unique
identifyer...(SQL2000)
I get an error, I've tried using cfquerypqram (both the varchar and idstamp)
to no avail.
code:
<cfquery name="DeleteInfo" datasource="xxx">
DELETE FROM MembersMessageLog
WHERE ID = '#url.UID#'
</cfquery>
OR
<cfquery name="DeleteInfo" datasource="xxx">
DELETE FROM MembersMessageLog
WHERE ID = <cfqueryparam value="#url.UID#" cfsqltype="CF_SQL_VARCHAR">
</cfquery>
OR
<cfquery name="DeleteInfo" datasource="xxx">
DELETE FROM MembersMessageLog
WHERE ID = <cfqueryparam value="#url.UID#" cfsqltype="CF_SQL_IDSTAMP">
</cfquery>
all yield the same error.....
Executing the SQL statement is not allowed.
The error occurred in D:\FS Clients\ExWivesJewelry.com\Site
Live\ContactSeller.cfm: line 4
2 : <cfquery name="DeleteInfo" datasource="xxx">
3 : DELETE FROM MembersMessageLog
4 : WHERE ID = <cfqueryparam value="#url.UID#"
cfsqltype="CF_SQL_VARCHAR">
5 : </cfquery>
--------------------------------------------------------------------------------
SQL DELETE FROM MembersMessageLog WHERE ID = (param 1)
DATASOURCE xxx
zorg Guest
-
When to use UUID
I use MYSQL, but I think this is a general database design question: <b>Is it a good idea to use UUIDs to generate unique indexes and primary keys... -
Database UUID problems
I am modifying the GetSubscribers() function to pull people who have signed up for specific categories. It works great when I manually put in which... -
Using CHAR to store UUID in SQL Server
Hi, In SQL Server, I use CHAR to store UUID as primary for all my tables. Is there any performance disadvantage when performing linking with... -
generationg an UUID
Hi, Is it possible to generate an UUID (GUID) in PHP? An unique id like: "BF127074-8A15-4A32-A7B3-BEF9A2DBB65C" Thanks -
ADO 2.8 UUID (for use with ASP on Windows 2003)
What is the UUID associated with ADO 2.8? The most current one I've found for use with ASP is: <!--METADATA TYPE="typelib"... -
zorg #2
Re: Cant delete a row using a UUID as the PK
UGH - dissregard.....
I've been using soft deletes....and forgot I set the DSN to not allow deletes....
zorg Guest



Reply With Quote

