Click here to Skip to main content
15,889,511 members
Home / Discussions / Database
   

Database

 
Generalmultiple db systems in one app Pin
schilled1-Mar-05 2:45
schilled1-Mar-05 2:45 
GeneralRe: multiple db systems in one app Pin
-Dr_X-19-Mar-05 16:49
-Dr_X-19-Mar-05 16:49 
GeneralRe: multiple db systems in one app Pin
schilled20-Mar-05 22:22
schilled20-Mar-05 22:22 
GeneralSearching by degree of separation Pin
who2who228-Feb-05 23:19
who2who228-Feb-05 23:19 
GeneralRe: Searching by degree of separation Pin
Michael Potter2-Mar-05 4:03
Michael Potter2-Mar-05 4:03 
GeneralRe: Searching by degree of separation Pin
Colin Angus Mackay2-Mar-05 4:33
Colin Angus Mackay2-Mar-05 4:33 
GeneralExtended Stored Procedure from Trigger Pin
samvibes28-Feb-05 20:28
susssamvibes28-Feb-05 20:28 
GeneralRe: Extended Stored Procedure from Trigger Pin
Mike Dimmick28-Feb-05 22:57
Mike Dimmick28-Feb-05 22:57 
I'm guessing that your trigger is defined on the Employees table. Since you're creating a new connection, I think the query in your extended stored procedure is deadlocking on the locks held by the INSERT.

Triggers run in the context of the statements that cause them to execute, and significantly, as part of the implicit transaction implied by those statements. An INSERT causes the newly inserted row to be locked with an Exclusive lock. The statement in the XP takes shared locks. When it gets to the newly inserted row, it will block.

The Extended Stored Procedures documentation discusses bound connections, where you can make a new connection part of the original transaction. This might solve your problem.

What are you actually trying to achieve? An XP is really the last resort; you should try to use T-SQL if you can.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: Extended Stored Procedure from Trigger Pin
samvibes28-Feb-05 23:58
susssamvibes28-Feb-05 23:58 
GeneralRe: Extended Stored Procedure from Trigger Pin
Mike Dimmick2-Mar-05 5:58
Mike Dimmick2-Mar-05 5:58 
GeneralImage data Pin
Murlai28-Feb-05 17:28
Murlai28-Feb-05 17:28 
GeneralSQL Join over two databases Pin
ppp00128-Feb-05 15:40
ppp00128-Feb-05 15:40 
GeneralRe: SQL Join over two databases Pin
Timcyspet28-Feb-05 16:27
Timcyspet28-Feb-05 16:27 
GeneralRe: SQL Join over two databases Pin
ABBASI_RA2-Mar-05 5:44
ABBASI_RA2-Mar-05 5:44 
GeneralRe: SQL Join over two databases Pin
ppp0015-Mar-05 19:00
ppp0015-Mar-05 19:00 
GeneralRe: SQL Join over two databases Pin
Mike20154-Mar-05 0:40
Mike20154-Mar-05 0:40 
GeneralRe: SQL Join over two databases Pin
ppp0015-Mar-05 19:00
ppp0015-Mar-05 19:00 
Generalsmallmoney Pin
pickron28-Feb-05 8:28
pickron28-Feb-05 8:28 
GeneralRe: smallmoney Pin
Rob Graham28-Feb-05 8:43
Rob Graham28-Feb-05 8:43 
GeneralRe: smallmoney Pin
pickron28-Feb-05 8:48
pickron28-Feb-05 8:48 
GeneralRe: smallmoney Pin
Luis Alonso Ramos28-Feb-05 18:46
Luis Alonso Ramos28-Feb-05 18:46 
QuestionHow do i run a system stored procedure Pin
Anonymous28-Feb-05 5:57
Anonymous28-Feb-05 5:57 
AnswerRe: How do i run a system stored procedure Pin
Rob Graham28-Feb-05 8:49
Rob Graham28-Feb-05 8:49 
GeneralRe: How do i run a system stored procedure Pin
Anonymous28-Feb-05 23:22
Anonymous28-Feb-05 23:22 
GeneralUpdate Table Pin
jetset3228-Feb-05 5:29
jetset3228-Feb-05 5:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.