<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use a stored procedure from SQL Server in Qliksense? in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-use-a-stored-procedure-from-SQL-Server-in-Qliksense/m-p/1635986#M4530</link>
    <description>&lt;P&gt;THIS IS THE FIRST PART OF THE CODE, AFTER IT ARE JUST MANY SELECTS AND JOINS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USE [database name]&lt;BR /&gt;GO&lt;BR /&gt;/****** Object: StoredProcedure [dbo].[IncomeExpenseReport] Script Date: 10/15/2019 10:31:13 AM ******/&lt;BR /&gt;SET ANSI_NULLS ON&lt;BR /&gt;GO&lt;BR /&gt;SET QUOTED_IDENTIFIER ON&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;ALTER PROCEDURE [dbo].[IncomeExpenseReport]&lt;BR /&gt;@startDate DATETIME,&lt;BR /&gt;@endDate DATETIME&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;CREATE TABLE #TmpDocLinesTable(&lt;BR /&gt;[TotalValueExpense] DECIMAL(28, 6),&lt;BR /&gt;[TotalValueIncome] DECIMAL(28, 6),&lt;BR /&gt;[TotalValueIncomeWithVTA] DECIMAL(28, 6),&lt;BR /&gt;[CostCenterCode] NVARCHAR(4000) COLLATE SQL_Latin1_General_CP1_CI_AS,&lt;BR /&gt;[CostCenterName] NVARCHAR(4000) COLLATE SQL_Latin1_General_CP1_CI_AS,&lt;BR /&gt;[CostCenterGroupID] INT,&lt;BR /&gt;[CostCenterGroupName] NVARCHAR(4000) COLLATE SQL_Latin1_General_CP1_CI_AS,&lt;BR /&gt;[Difference] DECIMAL(28, 6)&lt;BR /&gt;)&lt;BR /&gt;SET NOCOUNT ON;&lt;BR /&gt;DECLARE @partnerEntity INT&lt;BR /&gt;DECLARE @agentEntity INT&lt;BR /&gt;DECLARE @documentEntity INT&lt;BR /&gt;DECLARE @costCenterEntity INT&lt;BR /&gt;DECLARE @idLookupValidDocument INT&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-it connects to the database and then it says " error around the word 'ALTER' " - or something similar&lt;/P&gt;&lt;P&gt;-I need to execute stored procedures from an SQL Server Database in QlikSense in order to get some data.&lt;/P&gt;&lt;P&gt;Can you please tell me what the problem is?&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 11:46:21 GMT</pubDate>
    <dc:creator>Ted_Baker</dc:creator>
    <dc:date>2019-10-16T11:46:21Z</dc:date>
    <item>
      <title>How to use a stored procedure from SQL Server in Qliksense?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-use-a-stored-procedure-from-SQL-Server-in-Qliksense/m-p/1635986#M4530</link>
      <description>&lt;P&gt;THIS IS THE FIRST PART OF THE CODE, AFTER IT ARE JUST MANY SELECTS AND JOINS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USE [database name]&lt;BR /&gt;GO&lt;BR /&gt;/****** Object: StoredProcedure [dbo].[IncomeExpenseReport] Script Date: 10/15/2019 10:31:13 AM ******/&lt;BR /&gt;SET ANSI_NULLS ON&lt;BR /&gt;GO&lt;BR /&gt;SET QUOTED_IDENTIFIER ON&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;ALTER PROCEDURE [dbo].[IncomeExpenseReport]&lt;BR /&gt;@startDate DATETIME,&lt;BR /&gt;@endDate DATETIME&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;CREATE TABLE #TmpDocLinesTable(&lt;BR /&gt;[TotalValueExpense] DECIMAL(28, 6),&lt;BR /&gt;[TotalValueIncome] DECIMAL(28, 6),&lt;BR /&gt;[TotalValueIncomeWithVTA] DECIMAL(28, 6),&lt;BR /&gt;[CostCenterCode] NVARCHAR(4000) COLLATE SQL_Latin1_General_CP1_CI_AS,&lt;BR /&gt;[CostCenterName] NVARCHAR(4000) COLLATE SQL_Latin1_General_CP1_CI_AS,&lt;BR /&gt;[CostCenterGroupID] INT,&lt;BR /&gt;[CostCenterGroupName] NVARCHAR(4000) COLLATE SQL_Latin1_General_CP1_CI_AS,&lt;BR /&gt;[Difference] DECIMAL(28, 6)&lt;BR /&gt;)&lt;BR /&gt;SET NOCOUNT ON;&lt;BR /&gt;DECLARE @partnerEntity INT&lt;BR /&gt;DECLARE @agentEntity INT&lt;BR /&gt;DECLARE @documentEntity INT&lt;BR /&gt;DECLARE @costCenterEntity INT&lt;BR /&gt;DECLARE @idLookupValidDocument INT&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-it connects to the database and then it says " error around the word 'ALTER' " - or something similar&lt;/P&gt;&lt;P&gt;-I need to execute stored procedures from an SQL Server Database in QlikSense in order to get some data.&lt;/P&gt;&lt;P&gt;Can you please tell me what the problem is?&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 11:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-use-a-stored-procedure-from-SQL-Server-in-Qliksense/m-p/1635986#M4530</guid>
      <dc:creator>Ted_Baker</dc:creator>
      <dc:date>2019-10-16T11:46:21Z</dc:date>
    </item>
  </channel>
</rss>

