cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chad1
Frequent Visitor

Custom SQL Transaction Table with MS Access and SQL Server Commands

I have a bit of a one off that I was hoping someone might have some ideas on.  We have a table called tblSQLTransactions located on SQL Server  with two fields that matter here:  [Server_SQL_Command] and [Client_SQL_Command]. 

 

The table has a trigger that executes the sql syntax found in [Server_SQL_Command] on the server when a new row is inserted.  The SQL command found here would be typical SQL syntax with an INSERT, UPDATE, DELETE, etc. 

 

Each of the clients then link to this table and when their machine sees a new record, execute the [Client_SQL_Command] locally on a local set of data.  The client's machine however use Microsoft Access, and the SQL syntax needs to be slightly different for some types of fields (e.g. date fields and boolean fields). 

 

Powerapps seems to make everything easy so I thought I'd ask if anyone has ideas on how to set this up.  A high level premise I was thinking was if I could pass the tablename, fieldnames and values from the PowerApps form and have a Flow that would determine the field type and generate the respective SQL syntax for each of the server and client versions.

 

Is something like that possible?

 

Thanks,

Chad

0 REPLIES 0

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (17,626)