I have inherited this app -
Access adp file runs on the network, calling machines run either Access XP or 2003.
Form is bound to a table in sql 2005 express.
I have added a stored procedure to the database to insert a new row in the table.
The error I get from the .net app is as follows...
==========================
==========
==========
==========
==========
==========
=========
Error in calling assembly Avon Master Pleat Pack, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null.
Occured in .Net SqlClient Data Provider.
__________________________
__________
__________
__________
__________
______
Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Description: An unhandled exception occurred during execution.
The exception was thrown due to the SQL Server returning a warning or error.
Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlE
xception: Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Source Error:
.Net SqlClient Data Provider
Stack Trace:
at System.Data.SqlClient.SqlC
onnection.
OnError(Sq
lException
exception, Boolean breakConnection)
at System.Data.SqlClient.SqlI
nternalCon
nection.On
Error(SqlE
xception exception, Boolean breakConnection)
at System.Data.SqlClient.TdsP
arser.Thro
wException
AndWarning
(TdsParser
StateObjec
t stateObj)
at System.Data.SqlClient.TdsP
arser.Run(
RunBehavio
r runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlC
ommand.Fin
ishExecute
Reader(Sql
DataReader
ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlC
ommand.Run
ExecuteRea
derTds(Com
mandBehavi
or cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlC
ommand.Run
ExecuteRea
der(Comman
dBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlC
ommand.Int
ernalExecu
teNonQuery
(DbAsyncRe
sult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlC
ommand.Exe
cuteNonQue
ry()
at DAL.MeasurementHeadersHelp
er.SaveOLD
Measuremen
tHeader(St
ring BarcodeBegin, String BarcodeEnd) in C:\Projects\Custom Filter\Source Code\CustomFilterRespirato
rDatabase.
DAL\Measur
ementHeade
rsHelper.c
s:line 133
at Avon_Master_Pleat_Pack.For
m1.buttonA
ccept_Clic
k(Object sender, EventArgs e) in C:\Projects\Custom Filter\Source Code\Avon Master Pleat Pack\Avon Master Pleat Pack\Form1.cs:line 273
Additional SQL Server Information:
__________________________
__________
__________
__________
__________
______
Server Name: CF-FS1\SQLEXPRESS
Error Type: 50000
Error Level: 13
Error Code: 52
Procedure Name: InsertNewMeasurementHeader
Line Number: 131
==========================
==========
==========
==========
==========
==========
=========
WHen making the stored procedur call to the database in the .net application, the acces application is not (to my knowledge) connected to the table performing the insert on.