LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2004, 05:38 PM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
SQL insert using a non-locking trigger


Right, time to publically sell my soul to M$...

I have a table which has an insert trigger. This trigger isn't concerned with data validation or anything. Instead it is used to run some system calls via xp_cmdshell(). These commands take a while, and the point of them being there is they will update the rows that were inserted to call them. The data is being inserted by an addnew() call via and adodb connection in ASP.

Concurrently with this triggers execution i want to be reading the values that the trigger is updating on this particular rows.

So the problem seems to be that all the while this trigger is running i'm unable to read that particular row, which is causing my end ASP script to hang until the trigger completes.

What can i do to get around this? I've tried adding (NOLOCK) in whatever places i can find, but i'm unable to find much online about it.

Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trigger 0.5.1.c mirto Slackware 2 09-08-2005 06:34 AM
Migrating from MS-SQL server to My-SQL emailssent Linux - Networking 2 02-07-2005 02:20 PM
Which SQL is suitable for EMbedded SQL on C? hk_michael Programming 4 01-10-2005 05:07 PM
Get the date on PHP and insert it into SQL poeta_boy Programming 4 11-26-2003 03:25 AM
Error: Acct: Couldn't insert SQL accounting START record - Duplicate entry '15212' fo ethanchic Linux - Software 0 04-11-2003 10:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration