Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't run query from inside a transaction?
Message
From
02/09/2004 11:11:58
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Can't run query from inside a transaction?
Miscellaneous
Thread ID:
00938776
Message ID:
00938776
Views:
67
I need to test the uniqueness of 2 fields in combination. My approach is to compose a "SELECT COUNT(*) ..." query with the two values passed as parameters. I then execute this from the business object with:

Result = (Me.ExecScalar(Sql, SqlParms) = 0)

This has been working fine until I set Me.AutoUseTransactions = True in the business object which is the parent of this object. Now when I try to add a new row I get an exception:

"The transaction object is not associated with the connection object. "

Shouldn't I be able to run a scalar query during the save transaction? What's up with this?

Thanks,
Max...
Next
Reply
Map
View

Click here to load this message in the networking platform