[英]Why SQL (On-Prem using Data Gateway) Insert row (V2) action in Logic App does not populate tables?
I have an On-Prem SQL which I am accessing in my Logic App using On-Prem Data Gateway.我有一个本地 SQL,我正在使用本地数据网关在我的逻辑应用程序中访问它。 I have created a table in my SQL database as per below:
我在我的 SQL 数据库中创建了一个表,如下所示:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Temp_Emp_CC](
[Timestamp] [timestamp] NOT NULL,
[EmployeeCode] [int] IDENTITY(1,1) NOT NULL,
[CostCentreCode] [varchar](50) NOT NULL,
CONSTRAINT [PK_Temp_Emp_CC] PRIMARY KEY CLUSTERED
(
[EmployeeCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [Data Filegroup 1]
) ON [Data Filegroup 1]
GO
From a Logic App, I am trying to insert rows using "Insert row (V2)" action but it does not populate any tables:从逻辑应用程序中,我尝试使用“插入行(V2)”操作插入行,但它不填充任何表:
If I try any other SQL action in a Logic App, for example, "Get rows (V2)" or "Execute a stored procedure (V2)" they work fine for the same connection/database server/database.如果我在逻辑应用程序中尝试任何其他 SQL 操作,例如“获取行 (V2)”或“执行存储过程 (V2)”,它们对于相同的连接/数据库服务器/数据库都可以正常工作。 So, my assumption is I'm doing right things with creating a connection!
所以,我的假设是我通过创建连接做正确的事情!
From some forum I have learnt that a table needs to have an Identity Column and a Timestamp column, which I have added already;从某个论坛我了解到,一个表需要有一个身份列和一个时间戳列,我已经添加了; however issue still persist.
但是问题仍然存在。
I think I have figured this out.我想我已经想通了。 Although there is still a question but a separate one.
虽然还有一个问题,但是一个单独的问题。
The SQL database I was trying to access has so many tables - at least 100+ of them.我试图访问的 SQL 数据库有很多表——至少有 100 多个。 I didn't want to write to all of them but only a few.
我不想给他们所有人写信,只想写几个。 So, I have restricted my SQL account's access to those specific tables only, and they populated fine in my Logic App.
因此,我限制了我的 SQL 帐户对这些特定表的访问,并且它们在我的逻辑应用程序中填充得很好。
The existing question is, does Logic App/APIConnection/On-Prem Data Gateway have any limit on accessing the tables?现有的问题是,Logic App/APIConnection/On-Prem Data Gateway 对访问表有任何限制吗?
Anyway, the main issue is resolved so I will close this one now.无论如何,主要问题已解决,因此我现在将关闭此问题。 Thanks all your helps.
感谢您的所有帮助。 :-)
:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.