Click here to Skip to main content
15,905,776 members
Home / Discussions / Database
   

Database

 
GeneralCountry Flags Pin
sacoskun29-Aug-03 3:21
sacoskun29-Aug-03 3:21 
GeneralCombo box on Datagrid Pin
Anonymous29-Aug-03 3:12
Anonymous29-Aug-03 3:12 
GeneralRe: Combo box on Datagrid Pin
sacoskun29-Aug-03 3:34
sacoskun29-Aug-03 3:34 
GeneralRe: Combo box on Datagrid Pin
Anonymous29-Aug-03 5:36
Anonymous29-Aug-03 5:36 
GeneralRe: Combo box on Datagrid Pin
sacoskun29-Aug-03 6:48
sacoskun29-Aug-03 6:48 
GeneralSql Server, asp.net, c# unique constraint Pin
aquadogus28-Aug-03 10:16
aquadogus28-Aug-03 10:16 
GeneralADO seek method Pin
popsychin28-Aug-03 7:26
popsychin28-Aug-03 7:26 
GeneralWierd problem with ADO.Net transaction. Pin
FruitBatInShades28-Aug-03 5:07
FruitBatInShades28-Aug-03 5:07 
This is a wierd one!
I'm trying to use a transaction, when I try to execute the command I get the following error:-

The transaction assigned to this command must be the most nested pending local transaction

I've looked on the web and MSDN and can't find a reference to this error! Anyone got any ideas?

Dim myTrans As OleDbTransaction = conn.BeginTransaction(IsolationLevel.ReadCommitted)<br />
Command.Transaction = myTrans<br />
'Try<br />
myTrans.Begin()<br />
	If UniqueID > 0 Then<br />
		'it exists so update it<br />
		Command.CommandText = "UPDATE PCLEquipment SET NoOff=NoOff+1 WHERE UniqueID=" & UniqueID<br />
		Command.ExecuteNonQuery() 'FAILS HERE<br />
	Else<br />
		'it doesn't so add it<br />
		Command.CommandText = "INSERT INTO PCLEquipment(PlayerID,EquipmentID,NoOff) VALUES(" & PlayerID & "," & ItemID & ",1)"<br />
		Command.ExecuteNonQuery() 'FAILS HERE<br />
	End If<br />
	'subtract cost<br />
	SpendMoney(Command, Money, PlayerID)<br />
	myTrans.Commit()

GeneralRe: Wierd problem with ADO.Net transaction. Pin
andyharman31-Aug-03 12:16
professionalandyharman31-Aug-03 12:16 
GeneralRe: Wierd problem with ADO.Net transaction. Pin
FruitBatInShades1-Sep-03 1:08
FruitBatInShades1-Sep-03 1:08 
GeneralAccess and ASP Pin
LukeV27-Aug-03 10:17
LukeV27-Aug-03 10:17 
GeneralRe: Access and ASP Pin
Nino_127-Aug-03 19:36
Nino_127-Aug-03 19:36 
GeneralRe: Access and ASP Pin
Hesham Amin27-Aug-03 22:14
Hesham Amin27-Aug-03 22:14 
GeneralRe: Access and ASP Pin
RichardGrimmer1-Sep-03 5:13
RichardGrimmer1-Sep-03 5:13 
GeneralOleDb Connection Pin
Dan Betting27-Aug-03 10:08
sussDan Betting27-Aug-03 10:08 
GeneralRe: OleDb Connection Pin
andyharman27-Aug-03 10:52
professionalandyharman27-Aug-03 10:52 
GeneralRe: OleDb Connection Pin
Dan Betting27-Aug-03 11:49
sussDan Betting27-Aug-03 11:49 
GeneralRe: OleDb Connection Pin
Bo Hunter27-Aug-03 12:41
Bo Hunter27-Aug-03 12:41 
GeneralRe: OleDb Connection Pin
Chris Blazek30-Aug-03 18:17
sussChris Blazek30-Aug-03 18:17 
GeneralsqlDataAdapter Recommendation Pin
econner27-Aug-03 8:03
econner27-Aug-03 8:03 
GeneralRe: sqlDataAdapter Recommendation Pin
Mike Dimmick28-Aug-03 3:16
Mike Dimmick28-Aug-03 3:16 
GeneralSetFieldNull. Pin
Anonymous26-Aug-03 9:13
Anonymous26-Aug-03 9:13 
GeneralODBC Q Pin
Frank Olorin Rizzi26-Aug-03 7:39
Frank Olorin Rizzi26-Aug-03 7:39 
GeneralRe: ODBC Q Pin
Frank Olorin Rizzi27-Aug-03 4:02
Frank Olorin Rizzi27-Aug-03 4:02 
GeneralRe: ODBC Q Pin
Mike Dimmick27-Aug-03 5:22
Mike Dimmick27-Aug-03 5:22 

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.