即使我的工作 运行 没有错误,SSMS 中也没有出现任何数据

No data is appearing in SSMS even though my job is running without errors

问题:没有数据出现在 SSMS (Sql Server Management Studio)

我没有看到任何错误出现,我的作业图成功显示了从输入到输出的过程。

我正在尝试使用 Azure Application Insights、流分析和 SQL 数据库的连续导出功能。

这是我的查询:

SELECT  
A.context.data.eventTime as eventTime,   
A.context.device.type as deviceType,  
A.context.[user].anonId as userId,  
A.context.device.roleInstance as machineName


INTO DevUserlgnsOutput -- Output Name

FROM devUserlgnsStreamInput A -- Input Name

我用样本数据和查询下方的输出框测试了查询,它返回了我预期的结果,所以我认为查询本身不是问题。

我还知道自从我开始工作以来,我尝试显示其属性的自定义事件已经发生。我的工作也还在 运行 并且自创建以来就没有停止过。

此外,我想指出的是,流分析页面上的监控图检测到 0 个输入、0 个输出和 0 个运行时错误。

提前感谢您的帮助!

以下是一些可能有帮助的图片:

Stream Analytics Output Details
The Empty SSMS after I clicked "display top 1000 rows," which should be filled with data No input events, output events, or runtime errors for the stream analytics job

我已经两次遇到这个问题,涉及 2 个单独的应用程序见解、容器、作业等。两次我都通过编辑作业输入的路径模式解决了这个问题。

导航到必要的边栏选项卡以进行以下更改:

1) Click on your stream analytics job

2) Click "inputs" under the "job topology" section of the blade

3) Click your input (if multiple inputs, do this to 1 at a time)

4) Use the blade that pops up on the right side of the screen

我遇到的 4 种可能的解决方案是(粗体 中的 A-D):

一个。确保您输入的路径模式是没有隐藏字符的纯文本(有时从 Azure 上的容器复制它使其不是纯文本)。

*Steps:*

   1) Cut the path pattern you have already in the input blade

   2) Paste it into Notepad and re-copy it

   3) Re-paste it into the path pattern slot of your input

乙。用 /{date}/{time}

附加你的路径模式
Simply type this at the end of your path pattern in the blade's textbox

C。从路径模式的开头删除容器名称和紧随其后的“/”(见下图)

Edit path pattern

Should be self-explanatory after seeing the pic.

D.在下拉框中将您输入的日期格式更改为 YYYY-MM-DD。

Should also be self-explanatory (look at the above picture if not).

希望对您有所帮助!!