How to switch the database for a sql server api connection on Logic Apps?

Clay Casper 156 Reputation points
2024-03-27T13:43:10.29+00:00

I have a SQL Server API connection that is used by my logic app. For some of the actions, it lets you pick "Use Connection Settings" for the Database Name. I'd like to swap what database we're using by just changing the database name in the connection, but I haven't found a way to do that. Is this possible or will I need to find another solution like creating a whole new api connection and deleting the old one.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,845 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Clay Casper 156 Reputation points
    2024-03-27T14:02:00.42+00:00

    Was trying to edit the connection using managed identity authentication. Switched to SQL Server authentication and then I was able to change the database name.

    1 person found this answer helpful.
    0 comments No comments

  2. LeelaRajeshSayana-MSFT 13,456 Reputation points
    2024-03-28T21:06:19.19+00:00

    Hi @Clay Casper I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .

    Issue:

    I have a SQL Server API connection that is used by my logic app. I'd like to swap what database we're using by just changing the database name in the connection.

    Solution:

    Changing the mode of authentication from Managed Identity to SQL server authentication provided me a way to change the connection.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this helps!

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

    0 comments No comments