D
D
DartAlex2016-03-02 12:05:49
C++ / C#
DartAlex, 2016-03-02 12:05:49

How do MS Access and MS SQL Server communicate?

There is a MS SQL database with triggers for saving history, tracking INSERT, UPDATE, DELETE. When the client (WinForm) communicates with the database with simple queries (example: DELETE FROM [dbo].[table] WHERE [id]='1'), the trigger writes an event. But if you connect to the database with Access, the triggers do not work or work incorrectly. I assume that Access uses something like LINQ in entity framework. Is it so? And if so what does Access use?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artyom Karetnikov, 2016-03-03
@DartAlex

Colleague, triggers are internal mechanisms of ms sql. So that they do not work - this, in principle, does not happen.
Moreover, it does not happen that they worked correctly in one case and did not work in another - rather, I believe that they are crookedly written.
Give examples from a real database. It's also a good idea to specify exactly how you work with the database.

D
Dmitry Kovalsky, 2016-03-02
@dmitryKovalskiy

Your assumption cannot be correct for a simple reason. LINQ/ EntityFramework/НЁХ - it's all eventually unfolded anyway into a regular SQL query to the database, wrapped in a transaction.

A
AxisPod, 2016-03-02
@AxisPod

See profiler, MSSQL has it out of the box. And you don't have to guess.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question