I am trying to launch a SQL Server stored procedure from a button in a MS Access form. The linked server has already been created but I am a little confused about launching the stored procedure from Access. The procedure will update records in SQL Server based on several parameters. This is working as intended, it must just simply run when a button is pressed on a MS Access form. After looking online it appears there are 3 different ways of doing the same thing?!
There is:
EXEC
OPENROWSET
OPENQUERY
Which is best to use and do these even do what I need or am I just confused?
We are using MS Access simply as a front end and I just need a way to be able to press a button on a MS Access form and it run a SQL Server stored procedure