473,395 Members | 2,079 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,395 software developers and data experts.

Trigger on an Access database?

We have an Access database with Access front-end to Access back-end.
Another company has installed a separate application using SQLServer.
At present certain information in the first application is entered
manually into the second. We wish to automate this process.

The other company is proposing that the SQLServer application sets up a
trigger on a selected table in the Access backend. When a new record
is added, information can be transferred to the SQLServer.

I am interested to know if this is really possible. I have found in
BOL that the Access database can be set up as a linked server to
SQLServer. Is this way to handle this and is it then possible to set
up a trigger?

I am not the person who will be doing this but would like to know if it
possible and, in general, how it is done.

Jim

Nov 11 '06 #1
4 6970
Jim Devenish wrote:
We have an Access database with Access front-end to Access back-end.
Another company has installed a separate application using SQLServer.
At present certain information in the first application is entered
manually into the second. We wish to automate this process.

The other company is proposing that the SQLServer application sets up
a trigger on a selected table in the Access backend. When a new
record is added, information can be transferred to the SQLServer.

I am interested to know if this is really possible. I have found in
BOL that the Access database can be set up as a linked server to
SQLServer. Is this way to handle this and is it then possible to set
up a trigger?

I am not the person who will be doing this but would like to know if
it possible and, in general, how it is done.

Jim
When using Jet tables (tables in an MDB file) there is no support for triggers.
You can of course use Access as the front end use a server back end and choose
one that does support triggers.

If you didn't misunderstand what the other company said then they are not very
familiar with Access.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Nov 11 '06 #2

Rick Brandt wrote:
Jim Devenish wrote:
We have an Access database with Access front-end to Access back-end.
Another company has installed a separate application using SQLServer.
At present certain information in the first application is entered
manually into the second. We wish to automate this process.

The other company is proposing that the SQLServer application sets up
a trigger on a selected table in the Access backend. When a new
record is added, information can be transferred to the SQLServer.

I am interested to know if this is really possible. I have found in
BOL that the Access database can be set up as a linked server to
SQLServer. Is this way to handle this and is it then possible to set
up a trigger?

I am not the person who will be doing this but would like to know if
it possible and, in general, how it is done.

Jim

When using Jet tables (tables in an MDB file) there is no support for triggers.
You can of course use Access as the front end use a server back end and choose
one that does support triggers.

If you didn't misunderstand what the other company said then they are not very
familiar with Access.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Thanks for that. I suggested to them that they provide a simple means,
such as a View or a Stored Procedure, that I could use in the front-end
to update the SQL tables when the information changed in the Access
back-end. They said that 'their technical people' would prefer to set
up a trigger on the Access back-end and so monitor any changes to a
particular table.

I was not so sure, although my knowledge of SQL Server is limited. You
appear to confirm my doubts.

By the way, you may have realised that I wrote and maintain the Access
system!

Jim

Nov 11 '06 #3
Jim Devenish wrote:
>
Thanks for that. I suggested to them that they provide a simple
means, such as a View or a Stored Procedure, that I could use in the
front-end to update the SQL tables when the information changed in
the Access back-end. They said that 'their technical people' would
prefer to set up a trigger on the Access back-end and so monitor any
changes to a particular table.

I was not so sure, although my knowledge of SQL Server is limited.
You appear to confirm my doubts.

By the way, you may have realised that I wrote and maintain the Access
system!
If all updates and insertions are done in your Access app via forms then you can
link to the SQL Server tables and then use code in your forms that push
identical updates to the SQL Server link.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


Nov 11 '06 #4
Rick Brandt wrote:
Jim Devenish wrote:
If all updates and insertions are done in your Access app via forms then you can
link to the SQL Server tables and then use code in your forms that push
identical updates to the SQL Server link.
But this risks making a mistake in the code. Before going down this
road, you should definitely evaluate migrating the back end from Jet
to SQL Server, thus allowing triggers.

Failing that, if near-real-time is acceptable, then create a stored
procedure that updates SQL to match Jet, and an Agent job to run that
procedure at some appropriate frequency.
Nov 15 '06 #5

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

Similar topics

10
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
5
by: premmehrotra | last post by:
I currently have a multi-user access database which is put on a shared drive L: on a Windows Servers. Entire database is one file premdb.mdb. Users access this database from their laptops....
8
by: John Baker | last post by:
Hi: I am URGENTLY in need of some book or web site OR tool that will help me integrate a relatively simple access application into a web page or pages. This is a time recording system (by...
15
by: philip | last post by:
On a form, I have a datagridview. This datagridview is constructed on a dataset filled by a tableadapter. The table adapter do very well what it must do when filling dataset. Insertions,...
7
by: Allison | last post by:
Hi -- we are a small manufacturing looking for a multi-user database to take customer orders (nothing too complicated, with 3 users total). We think we should be using Access, but are wondering...
3
by: boyleyc | last post by:
Hi I am working on a Access database and have run into a design problem. Bit of background - This is how a booking works. A booking is taken from a client and a date/time begining of booking...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
1
by: Rameel | last post by:
Friends, I'm probably being more critical with VB.Net Windows application. I have Developed VisualStudio 20005 VB.Net Windows application how willl i be able to save a specific record into my...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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...

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.