Never mind. Didn't see the SELECT portion of that query.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 1:26 PM
To: CF-Talk
Subject: RE: How Do I Get The Results of This Query Into a Cookie?


Cookies can only contain strings, dates, booleans and the like. If you're
trying to dump the entire query into a COOKIE then it's no go.

Also, I just tested it and I don't believe that an UPDATE query even RETURNS
results. It just runs and does it's thing.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Rob Redford [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 1:08 PM
To: CF-Talk
Subject: How Do I Get The Results of This Query Into a Cookie?


The reasons for this are not important, but I need to get the result
of the following query into a cookie:

        BEGIN TRANSACTION
            UPDATE LinkShareMaxID SET LinkShareUID = LinkShareUID + 1
            SELECT LinkShareUID FROM LinkShareMaxID
        COMMIT TRANSACTION

The results of the query (I thought) return a simple integer, but I
get the following error message:
 ________________________________

Complex object types cannot be converted to simple values.

The expression has requested a variable or an intermediate expression
result as a simple value, however, the result cannot be converted to a
simple value. Simple values are strings, numbers, boolean values, and
date/time values. Queries, arrays, and COM objects are examples of
complex values. <p> The most likely cause of the error is that you are
trying to use a complex value as a simple one. For example, you might
be trying to use a query variable in a &lt;CFIF&gt; tag. This was
possible in ColdFusion 2.0 but creates an error in later versions.
____________________________________

How can I get that value into a cookie?

Thanks,
Rob





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220407
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to