473,378 Members | 1,152 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Can Access support ASP transactions?

I have an Access database on an ISP's web-space which is accessed
through ASP - all standard stuff.

Can anyone tell me whether ASP's object.context methods for
transactions will work with Access? My ASP reference talks about SQL
Server and XA protocol databases but I have no idea as to whether
Access is covered by the latter.

Thanks
Nov 12 '05 #1
8 5374
TC
You'd be talking about Jet - not Access. Access is just the UI stuff (forms,
reports etc.). Jet is the underlying database engine. Jet does have
transactions, but I don't know whether they work from ASP.

Googling on:

"xa protocol" jet

lead immediately to a humungous Active Server Pages Guide. Perhaps the
answer is in there somewhere.

HTH,
TC
"David Bray" <dj****@btinternet.com> wrote in message
news:4a**************************@posting.google.c om...
I have an Access database on an ISP's web-space which is accessed
through ASP - all standard stuff.

Can anyone tell me whether ASP's object.context methods for
transactions will work with Access? My ASP reference talks about SQL
Server and XA protocol databases but I have no idea as to whether
Access is covered by the latter.

Thanks

Nov 12 '05 #2
MS Access does not support the transaction type process - such as
transaction begin, etc. - T-SQL (MS SQL) does since MS SQL - SQL is
procedural based where Access uses a much simpler model

dj****@btinternet.com (David Bray) wrote in message news:<4a**************************@posting.google. com>...
I have an Access database on an ISP's web-space which is accessed
through ASP - all standard stuff.

Can anyone tell me whether ASP's object.context methods for
transactions will work with Access? My ASP reference talks about SQL
Server and XA protocol databases but I have no idea as to whether
Access is covered by the latter.

Thanks

Nov 12 '05 #3
TC
Not true. MS Jet (the default database engine used by Access) has
BeginTrans, Commit & Rollback methods; check online help.

TC
"MeadeR" <Me****@ComputerSOSNJ.com> wrote in message
news:32************************@posting.google.com ...
MS Access does not support the transaction type process - such as
transaction begin, etc. - T-SQL (MS SQL) does since MS SQL - SQL is
procedural based where Access uses a much simpler model

dj****@btinternet.com (David Bray) wrote in message

news:<4a**************************@posting.google. com>...
I have an Access database on an ISP's web-space which is accessed
through ASP - all standard stuff.

Can anyone tell me whether ASP's object.context methods for
transactions will work with Access? My ASP reference talks about SQL
Server and XA protocol databases but I have no idea as to whether
Access is covered by the latter.

Thanks

Nov 12 '05 #4
On 27 Oct 2003 14:30:23 -0800, dj****@btinternet.com (David Bray)
wrote:

I think you're on the wrong track. Object Context is used where COM
objects vote if the overall transaction (and this term is used loosely
here) can continue or not. So you could write an object method that
interacts with an Access database, decides it doesn't like the
results, and calls SetAbort.

Access (or better: Jet) is not a COM object in the sense used above.
However, it does support database transactions (and this term is used
strictly here: BeginTrans, CommitTrans, Rollback), which then could be
used to decide circumstances are not good and SetAbort should be
called. In pseudocode:
on error goto errorhandler
BeginTrans
'credit one account
'debit another account
CommitTrans
ObjectContext.SetComplete
Exit Sub
errorhandler:
Rollback
ObjectContext.SetAbort
Exit sub

Hope the difference makes sense to you.

-Tom.

I have an Access database on an ISP's web-space which is accessed
through ASP - all standard stuff.

Can anyone tell me whether ASP's object.context methods for
transactions will work with Access? My ASP reference talks about SQL
Server and XA protocol databases but I have no idea as to whether
Access is covered by the latter.

Thanks


Nov 12 '05 #5
dj****@btinternet.com (David Bray) wrote in
news:4a**************************@posting.google.c om:
I have an Access database on an ISP's web-space which is accessed
through ASP - all standard stuff.

Can anyone tell me whether ASP's object.context methods for
transactions will work with Access? My ASP reference talks about SQL
Server and XA protocol databases but I have no idea as to whether
Access is covered by the latter.


TTBOMK ASP has no direct connection with databases whatsoever. Typically
ASP uses ADO and an OLEDB provider to access databases such as MS-SQL or
MS-Jet (I suppose one might call JET, "the native provider for MS-Access").
If the provider supports transactions, then ADO and OLEDB can use

BeginTrans
CommitTrans
and
RollbackTrans

as methods of the connection object.

Of course, Jet and MS-SQL may also have their own internal transaction
handling. From MS-SQL help:
**** begin quote ****
If a severe error prevents the successful completion of a transaction, SQL
Server automatically rolls back the transaction and frees all resources
held by the transaction.
**** end quote ****

If you are messing with databases through ASP-ADO then you really should
read the pertinent parts of ADO help and MS-SQL Books on Line. Sometimes
people with a background in Access do not realize that MS-SQL and ADO are
so powerful and extensive that working with either could be a full time
job. They are immense subjects and learning everything about them is
challenging. There are no simple answers in working with these
technologies; we may be lulled into thinking that there are because Access
has a history of making things easy for us. But when we leave Access, (and
ASP has zip to do with Access) we must learn our trade.

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #6
Tom - my confusion - Access (Jet) does not support Transactions
imbedded inside the SQL as T-SQL does (MS SQL) - but via Access VB you
can simulate this. So what I would consider native transaction
processing is not supported inside of Access (Jet) SQL...(correct?)
Tom van Stiphout <to*****@no.spam.cox.net> wrote in message news:<mk********************************@4ax.com>. ..
On 27 Oct 2003 14:30:23 -0800, dj****@btinternet.com (David Bray)
wrote:

I think you're on the wrong track. Object Context is used where COM
objects vote if the overall transaction (and this term is used loosely
here) can continue or not. So you could write an object method that
interacts with an Access database, decides it doesn't like the
results, and calls SetAbort.

Access (or better: Jet) is not a COM object in the sense used above.
However, it does support database transactions (and this term is used
strictly here: BeginTrans, CommitTrans, Rollback), which then could be
used to decide circumstances are not good and SetAbort should be
called. In pseudocode:
on error goto errorhandler
BeginTrans
'credit one account
'debit another account
CommitTrans
ObjectContext.SetComplete
Exit Sub
errorhandler:
Rollback
ObjectContext.SetAbort
Exit sub

Hope the difference makes sense to you.

-Tom.

I have an Access database on an ISP's web-space which is accessed
through ASP - all standard stuff.

Can anyone tell me whether ASP's object.context methods for
transactions will work with Access? My ASP reference talks about SQL
Server and XA protocol databases but I have no idea as to whether
Access is covered by the latter.

Thanks

Nov 12 '05 #7
On 28 Oct 2003 03:26:50 -0800, Me****@ComputerSOSNJ.com (MeadeR)
wrote:

Lyle explains it well. Indeed you don't have stored procedures in
Jet, no multi-statement queries whatsoever. You interact with Jet
through one of the providers. From ASP, you would typically use ADO.
Doing so, you can use ADO's transaction support and write code similar
to my example.

-Tom.

Tom - my confusion - Access (Jet) does not support Transactions
imbedded inside the SQL as T-SQL does (MS SQL) - but via Access VB you
can simulate this. So what I would consider native transaction
processing is not supported inside of Access (Jet) SQL...(correct?)
Tom van Stiphout <to*****@no.spam.cox.net> wrote in message news:<mk********************************@4ax.com>. ..
On 27 Oct 2003 14:30:23 -0800, dj****@btinternet.com (David Bray)
wrote:

I think you're on the wrong track. Object Context is used where COM
objects vote if the overall transaction (and this term is used loosely
here) can continue or not. So you could write an object method that
interacts with an Access database, decides it doesn't like the
results, and calls SetAbort.

Access (or better: Jet) is not a COM object in the sense used above.
However, it does support database transactions (and this term is used
strictly here: BeginTrans, CommitTrans, Rollback), which then could be
used to decide circumstances are not good and SetAbort should be
called. In pseudocode:
on error goto errorhandler
BeginTrans
'credit one account
'debit another account
CommitTrans
ObjectContext.SetComplete
Exit Sub
errorhandler:
Rollback
ObjectContext.SetAbort
Exit sub

Hope the difference makes sense to you.

-Tom.

>I have an Access database on an ISP's web-space which is accessed
>through ASP - all standard stuff.
>
>Can anyone tell me whether ASP's object.context methods for
>transactions will work with Access? My ASP reference talks about SQL
>Server and XA protocol databases but I have no idea as to whether
>Access is covered by the latter.
>
>Thanks


Nov 12 '05 #8
Just to say thanks for the replies. Lyle's and Tom's comments helped
to remove the (temporary) blinkers! Its ADO I'm using to access the
database inside my ASP code and so its there I should be looking.

Thanks!
Nov 12 '05 #9

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

Similar topics

8
by: Frnak McKenney | last post by:
Back when computer dinosaurs roamed the earth and the precursors to today's Internet were tiny flocks of TDMs living symbiotically with the silicon giants, tracking access to data processing...
6
by: user451 | last post by:
As the most Access-savvy person in my office, I have been handed the task of proposing a nationwide expansion of a project that I have developed in Access. A brief overview: Right now, about 25...
2
by: Adnan | last post by:
Hey Ppl, I'm developing an Online Auction Site using ASP.net and am experiencing a problem with Transactions in ADO.Net. When beginTrasaction() function is invoked from a specific connection,...
2
by: Joseph S. | last post by:
Hi all, I'm using the following setup: VB.Net (.NET framework 1.1) Access2000 SharpDevelop 1.1 for development (it is very similar to Visual Studio ..NET) using ODBCConnection, ODBCCommand,...
2
by: Sridhar | last post by:
Hi, I am trying to implement sql transactions. But I am not knowing how to do that. I created a data access layer which contains methods to select/insert/update tables in a database. I have also...
14
by: mfrsousa | last post by:
hi there, i have a huge large text file (350.000 lines) that i want to import to a MS Acccess Database, of course i don't want to use Access, but do it with C#. i already have tried the...
9
by: rysch | last post by:
Hi, I am building a warehouse database for a small non-profit organisation that works in Africa. Currently, I have created a data entry form and table. The table is called: Inventory Transactions....
3
by: IntelliOfficer | last post by:
The data I am using was imported from Excel. The tables were then merged into one large table (3 million + records) and so cannot be re-exported into excel for modification. I am trying to map the...
3
by: Michael Schöller | last post by:
Hello, First of all english is not my natural language so please fogive me some bad mistakes in gramatic and use of some vocables :). I have a great problem here. Well I will not use it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.