473,503 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vb2003 and Sqlbase

I'm writing a query tool using vb and Sqlbase and noticed that when I do a
'non-query' statement, it automatically commits. I'd like to have it wait
until a 'commit' is issued before the commit. I thought you had to do this
in a transaction. I changed the code to do a transaction, but now when I
issue the commit, it gives me an 'XACT_E_NOTSUPPORTED(0X8004D00F) error.
Heres the code..

If LTrim(LCase(Mid(tc1.Text, 1, 6))) = "commit" Then
MsgBox(trans.IsolationLevel.ToString)
Try
trans.Commit()
Catch ex As Exception
MsgBox(ex.Message)
End Try
ElseIf LTrim(LCase(Mid(tc1.Text, 1, 6))) = "rollback" Then
Try
trans.Rollback()
Catch ex As Exception
MsgBox(ex.Message)
End Try
Else
trans = hQuest.BeginTransaction(IsolationLevel.ReadCommitt ed)
sCommand.Transaction = trans
MsgBox(trans.IsolationLevel.ToString)
Try
nRows = sCommand.ExecuteNonQuery()
sb.Text = nRows.ToString & " row(s) affected"
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If

I've tried various Isolation level changes and don't get anything. Any
clues??
May 30 '06 #1
1 1183
If I want to issue a rollback or commit sql statement, do I executeScaler or
ExecuteNonQuery?
"Peter Lux" <pe******@theheritagegrp.com> wrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
I'm writing a query tool using vb and Sqlbase and noticed that when I do a
'non-query' statement, it automatically commits. I'd like to have it wait
until a 'commit' is issued before the commit. I thought you had to do this
in a transaction. I changed the code to do a transaction, but now when I
issue the commit, it gives me an 'XACT_E_NOTSUPPORTED(0X8004D00F) error.

May 31 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1253
by: Neoharuo | last post by:
I am working on a VB2003 project that accesses a SQL Server database. The first two forms (frmA, frmB) are almost identicle as far as the processes and data access and updating. I've set it up so...
1
986
by: | last post by:
Hi, I'm running VC++ 2002 and i've just got VB 2003. I have a large application in C++ and wanted to build a small VB component that I could call from it. I have a feeling that this is not...
1
1212
by: Schultz | last post by:
Hi, i am trying to make a fully editable dataGrid and was using the "Top Ten Questions about the DataGrid Control" article in the MSDN Library as a guide. The following is my current vb code. I ran...
5
1171
by: John | last post by:
Hi How difficult is it to upgrade a vb2003 database app to vb2005? Thanks Regards
4
1399
by: John Dann | last post by:
Couple of questions about upgrading an existing installation of VB2003 (Pro) to 2005 (Pro): 1. Not having dabbled in VB2005 yet, I'd feel more comfortable also keeping a working VB2003...
5
1447
by: SStory | last post by:
What do most of the group think about 2005 in comparison to 2003? Slower? How painful is it to upgrade decent sized 2003 apps to 2005? Are there more gotchas? Past experience has shown me...
3
2921
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, I selected BorderStyle = Fixed3D for a textbox on a form in VB2005, but the textbox looks flat. In VB2003 the textbox has the same borderStyle = Fixed3D and has a 3D appearance. Is it...
5
1329
by: Don | last post by:
Can anyone recommend a good book for learning to use VB2003? I'm interested in something like Rocky Lhotka's "Business Object" books. I know he wrote one for VB2005 but I'd like a VB2003 specific...
6
3446
by: Dave Marden | last post by:
I currently use this routine in vbscript to ping computers and get the status of ping to determine whether to try to backup a machine, I am trying to change it to work with vb2003.net I am...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.