I was testing out insert triggers using DataDirect 3.4 drivers in CFMX
6.1 and noticed the problem mentioned below where the JRun CPU usage
spikes to 99% and never goes down until the service is bounced.
Removing the insert trigger makes the problem go away. Does anyone
know a good solution for this? For now I have reverted to the 3.3
drivers, although the 3.3 drivers have problems of their own. I am
thinking about trying out Microsoft's JDBC drivers to see if those are
better.
Thank you,
Mike Chabot
On 7/20/05, Bert Dawson <[EMAIL PROTECTED]> wrote:
> Years ago i picked up a way of returning the value inserted into an
> Identity column in SQL server, by adding a trigger to that table:
>
> CREATE TRIGGER get_my_id ON dbo.my_table
> FOR INSERT
> AS
> SELECT my_id AS my_new_id
> FROM INSERTED
> GO
>
> Then i can run:
>
> <cfquery name="q_test" datasource="#dsn#">
> INSERT INTO my_table (my_text)
> VALUES ('foo')
> </cfquery>
>
> my new id = #q_test.my_new_id#
>
> I know i can use @@IDENTITY or SCOPE_IDENTITY(), but i was wondering
> if the trigger method is a Bad thing to do...
>
> Its worked from CF4 to CFMX7, but barfs with the DataDirect 3.4
> drivers: the insert happens, but JRun sits at 50%.
>
> Does that mean there's a bug with the driver, or something wrong with my code?
>
> Cheers
> Bert
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:219077
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54