My first post here.
I should get the query that arrives to the SQL SERVER database created by an application (reports).
I should automate some of those reports and I need to get the query which is running so I can then try to create a script with that query.
I'm completely new to SQL Server and having a lot of experience in Oracle. I'm using SQL Server Management Studio 15.0.18206.0 and
select @@version
give me this result: Microsoft SQL Server 2016 (RTM-GDR) (KB4019088) - 13.0.1742.0 (X64) Jul 5 2017 23:41:17 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows Server 2016 Standard 6.3 <X64> (Build 14393: ) (Hypervisor)
Can you help me please ?