Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

how to execute PL_SQL Code in SSIS

$
0
0

HI,

I am facing problem while calling code in execute sql task in SSIS.

I am using OLEDB provider for oracle where my source & destination both are oracle and i want to fetch session_ID, Job_ID from table and assign it to variable.

Please find the below code for the reference.

 DECLARE
V_SESSION_ID     VARCHAR2(50);
V_Count         NUMBER;
V_JobID         NUMBER;

BEGIN
  SELECT COUNT(SESSION_ID) INTO V_Count
                FROM Job_Status
                WHERE JOB_NAME='Extract_BU_Dim'
                AND TO_CHAR(END_DATE,'DDMMYYYY')=TO_CHAR(SYSDATE,'DDMMYYYY');

IF(V_Count=0) THEN
            BEGIN
                V_SESSION_ID := TO_CHAR(SYSDATE,'DDMMYYYY');
            END;
        ELSIF(V_Count=1) THEN
            BEGIN
                   SELECT SESSION_ID  iNTO V_SESSION_ID 
                   FROM(SELECT SESSION_ID  
                                    FROM Job_Status
                                    WHERE JOB_NAME='Extract_BU_Dim'
                                    AND TO_CHAR(END_DATE,'DDMMYYYY')=TO_CHAR(SYSDATE,'DDMMYYYY')
                                    ORDER BY End_Date DESC)
                                    WHERE ROWNUM<=1;
                V_SESSION_ID :=V_SESSION_ID||'_1';
            END;
        ELSE
            BEGIN
                    SELECT SESSION_ID  INTO V_SESSION_ID 
                    FROM(SELECT SESSION_ID  
                                    FROM Job_Status
                                    WHERE Job_Name='Extract_BU_Dim'
                                    AND TO_CHAR(END_DATE,'DDMMYYYY')=TO_CHAR(SYSDATE,'DDMMYYYY')
                                    ORDER BY End_Date DESC)
                                    WHERE ROWNUM<=1;
                
                V_SESSION_ID :=V_SESSION_ID||'_1'||TO_NUMBER(SUBSTR(V_SESSION_ID,-1,1))+1;
            END;
            
        END IF;

--        INSERT INTO Job_Status
--            (
--JOBID,
--                Job_Name,
--                Start_Date,
--                End_Date,
--                Status,
--                Total_Count,
--Inserted_Count,
--Updated_Count,
--                SESSION_ID
--            )
--            VALUES
--            (
---JOBID_SEQ.NEXTVAL
--                'Extract_BU_Dim',
--                SYSDATE,
--                NULL,
--                'Started',
--                0,
--0,
--0,
--                V_SESSION_ID 
--            ) ;
        
 


--        SELECT  JobID INTO V_JOBID FROM
--        (SELECT  JOBID  
--                FROM Job_Status
--                WHERE Job_Name='CFC_Extract_PartyDim'
--                AND End_Date IS NULL
--                AND TOTAL_COUNT=0
--                ORDER BY JOBID DESC
--              ) WHERE ROWNUM<=1;
--                 
--    COMMIT;
--    EXCEPTION  WHEN NO_DATA_FOUND THEN 
--    NULL;
END;


Connecting to the Integration Services service on the computer "HostName" failed with the following error: "The specified service does not exist as an installed service."

$
0
0

Hi.

I'm very tired and irritated by now. Around two weeks of dances with bells-n-whistles... Pretty easy task, and so much time wasted - would love to get some payment from Microsoft for this.

So, very simple case. Developer machine. Installed from scratch:

Windows server 2016 - Hostname
SQL Server 2016 - Hostname\DEV (SQL, AS, SSIS)
SSDT 17.1
SSMS 17.1

I'm running SSMS under admin privileges, and trying to connect SSIS Services on Hostname (not SQL Server)

I've already got many, many different errors (we still can't develop normaly in Visual Studio 2015.3), always do much googling to find a workaround for them... but this... I just can't stand that stupidity any more.


TITLE: SSIS Execution Properties
------------------------------
Connecting to the Integration Services service on the computer "HostName" failed with the following error: "The specified service does not exist as an installed service.".
This error can occur when you try to connect to a SQL Server 2005 Integration Services service from the current version of the SQL Server tools. Instead, add folders to the service configuration file to let the local Integration Services service manage packages on the SQL Server 2005 instance.

WTF?! That 2005? There is no mention about 2005 ANYWHERE on this machine!
Let me show you the pictures!


All versions is up-to-date. Microsoft, what do you want from administrators?

Btw, I can normally connect to the remote SSIS Hostname from other machine with SSMS 16.5 installed.
And create and tune jobs and steps on SSIS packages inside them.
But not from SSMS 17.1! Why?!
SSMS 16.5 connects successfully

My XSD and XML files

$
0
0

I'm using SSIS to copy data from a XML file.I have a xsd but only read a part of my xml, for example doesn't read the three first elements Date, Name and Phone number, only read the elements contained in info elements. Someone can help me?

This is my XSD

<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Liquid Studio 2019 (https://www.liquid-technologies.com) -->
<xs:schema xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:s0="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService" xmlns:d="http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:_xdns0="http://schemas.microsoft.com/office/infopath/2003/changeTracking" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:q="http://schemas.microsoft.com/office/infopath/2009/WSSList/queryFields" xmlns:ma="http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes" xmlns:tns="http://IBKC.int/" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-06-21T16:04:39" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:dms="http://schemas.microsoft.com/office/2009/documentManagement/types" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-06-21T16:04:39" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="C:\Users\alfre\OneDrive\Desktop\MaintanceFileDefinition1.xsd" namespace="http://www.w3.org/XML/1998/namespace" />
  <xs:element name="gpDDAMaintenance">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="Date" type="xs:date" />
        <xs:element minOccurs="0" name="Name" type="xs:string" />
        <xs:element minOccurs="0" name="PhoneNumber" type="xs:string" />
<xs:element minOccurs="0" name="Info">
         <xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="FormStatus" type="xs:string" />
<xs:element minOccurs="0" name="FormName" type="xs:string" />
<xs:element minOccurs="0" name="FormEmailAddress" type="xs:string" />
<xs:element minOccurs="0" name="EmailAddressOverride" />
<xs:element minOccurs="0" name="DepositWorkflow" type="xs:boolean" />
<xs:element minOccurs="0" name="RateWorkflow" type="xs:boolean" />
<xs:element minOccurs="0" name="HiddenPassword" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
      <xs:attribute ref="xml:lang" use="optional" />
    </xs:complexType>
  </xs:element>
</xs:schema>

This is my XML

<xml version="1.0" encoding="utf-8"?>
<?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:XXXXXXmyXSD-2012-06-21T16-04-39" solutionVersion="1.0.20.207" productVersion="16.0.0.0" PIVersion="1.0.0.0" href="aaaa.com?>
<?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.4"?>
<?mso-infoPath-file-attachment-present?>
<my:gpDDAMaintenance xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:tns="http://IBKC.int/" xmlns:_xdns0="http://schemas.microsoft.com/office/infopath/2003/changeTracking" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls" xmlns:ma="http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes" xmlns:d="http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields" xmlns:q="http://schemas.microsoft.com/office/infopath/2009/WSSList/queryFields" xmlns:dms="http://schemas.microsoft.com/office/2009/documentManagement/types" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-06-21T16:04:39" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xml:lang="en-US">
<my:Date>2019-05-16</my:Date>
<my:Name>Jhon</my:Name>
<my:PhoneNumber>111-111-1111</my:PhoneNumber>

<my:gpInfo>
<my:FormStatus>Saved</my:FormStatus>
<my:FormName>AAA-157758106D-20190516131812</my:FormName>
<my:FormEmailAddress></my:FormEmailAddress>
<my:EmailAddressOverride></my:EmailAddressOverride>
<my:DepositWorkflow>true</my:DepositWorkflow>
<my:RateWorkflow>false</my:RateWorkflow>
<my:HiddenPassword>asd</my:HiddenPassword>
</my:gpInfo>
</my:gpDDAMaintenance>

XSLT to convert HTML to XML with SSIS

$
0
0

Hi Everyone:

I need a XSLT only for a piece of code highlighted to process how a XML in SSIS 

<html>
<body>
<div id="email body" style="font-size: 1em;">

<div style="width: 1100px; height: 80px; background-color: #E5E5E5; padding-top: 20px; padding-bottom: 20px;">
    <span style="padding-left: 20px;"><img src="http://www.abcd.com/images/logo_site_transparent_small_margin.png" alt="Global Netwatch"></span>
</div>
<div style="width: 1100px; height: 16px; background-color: #F0F0F0;"></div>

<h1 style="color: #374877;font-size: 1.3em;">GNW Transaction Statistics for (Treasury Connect – OBS Login) 2020-01-01 through 2020-01-31</h1>

<div style="color: #374877;font-size: 1em;font-weight: bold;">For more information proceed to <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.abcd.com&amp;d=DwMGaQ&amp;c=f6tYRtsKaO6ZKz1QmR9umB6XAUkLS8AoUzroXTzylZ4&amp;r=hTdvbjvcxRAtnXZ6irNX9PUaplXiRTFF7wZG0K1-60sSWsxAZVmItZ-lossuP10Q&amp;m=xwJBdwqDmH6_N3nD37us8B2HuvVxpQK2MxWodvIEdik&amp;s=HNCACIX2mDXN3Oeg-OsDJFixMAyHwSvV-BS-sNolrGo&amp;e=">www.abcd.com</a></div>
<br/>

<table border="0" cellpadding="0" cellspacing="0">
  <tr><td style="color: #E1963F;font-size: 1em;font-weight: bold;" align="left"></td>
</tr>
  <tr>
    <td style="border-collapse: collapse; border: .05px solid #BFBFBF">
      <table style="font-size: 12px; border-color: #BFBFBF; border-style: solid; border-width: .05em; border-collapse: collapse; width: 1100px;">
        <tr style="background-color: #DEDEDE;">
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">Object</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">Service Name</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">URL</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">IP Address</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">Method</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">Step Response</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">I</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">A</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">F</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">D</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">Total Checks</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">Errors</td>
          <td style="padding- padding-right: 5px; border-collapse: collapse; border: 1px solid #BFBFBF;" rowspan="1" colspan="1">% Good</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">1</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">Login Page</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">https://abcd.com/onlineMessenger</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">72.28.96.25</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">GET </td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.4436</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0260</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.3093</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0883</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0200</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">35474</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">127</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">99.6420%</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">2</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">Site Verification</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">https://abcd.com/onlineMessenger</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">72.28.96.25</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">POST</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.5910</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0264</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.3128</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.2301</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0216</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">35347</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">4</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">99.9887%</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">3</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">Redirect</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">https://abcd.com/onlineMessenger</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">72.28.96.25</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">POST</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.7052</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0260</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.2757</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.4034</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0001</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">35343</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">100.0000%</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">4</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">Account Information</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">https://abcd.com/onlineMessenger?1409173786679</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">72.28.96.25</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">GET </td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.4969</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0244</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.1999</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.2351</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.0375</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">35343</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">1</td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">99.9972%</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br/>

<table border="0" cellpadding="0" cellspacing="0">
  <tr><td style="color: #E1963F;font-size: 1em;font-weight: bold;" align="left"></td>
</tr>
  <tr>
    <td style="border-collapse: collapse; border: .05px solid #BFBFBF">
      <table style="font-size: 12px; border-color: #BFBFBF; border-style: solid; border-width: .05em; border-collapse: collapse; width: 1100px;">
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1"><B>Total Steps in Transaction</B></td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">4</td>
        </tr>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1"><B>Total Transaction Response Time</B></td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">2.2367 (seconds)</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1"><B>Ave. Response Time Per Step</B></td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">0.5592 (seconds)</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1"><B>Total Transaction Outage</B></td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">140 (minutes)</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1"><B>Transaction Uptime Percentage</B></td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">99.69%</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1"><B>Total Transaction Success Rate</B></td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">99.63%  (35474 Attempted, 35343 Successful)</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1"><B># of Notifications</B></td>
          <td style="padding- padding-right: 3px; border-collapse: collapse; border: 1px solid #BFBFBF;" nowrap="nowrap" rowspan="1" colspan="1">13</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br/>


<br/><br/>
<table style="font-size: 12px; border-color: #BFBFBF; border-style: solid; border-width: .05em; border-collapse: collapse;">
  <COLGROUP></COLGROUP>  <tbody>
  <tr>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF; background-color: #374877; color: #E4E7ED;">Legend</td>
    <td style="background-color: #374877; color: #E4E7ED;">Definitions</td>
  </tr>
  </tbody>
  <tbody>
  <tr>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF;"><span class="IRCBOLD"><span class="IRCSMALLER">I</span></span> <span class="IRCSMALLER">= Initial Connect</span></td>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF;"><span class="IRCSMALLER">Server Accepting Socket Connections</span></td>
  </tr>
  <tr>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF;"><span class="IRCBOLD"><span class="IRCSMALLER">A</span></span><span class="IRCSMALLER">= SSL Authentication</span></td>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF;"><span class="IRCSMALLER">Time Required To Establish SSL Session</span></td>
  </tr>
  <tr>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF;"><span class="IRCBOLD"><span class="IRCSMALLER">F</span></span><span class="IRCSMALLER">= First Packet Received</span></td>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF;"><span class="IRCSMALLER">Server Response Time / Processing Time</span></td>
  </tr>
  <tr>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF;"><span class="IRCBOLD"><span class="IRCSMALLER">D</span></span><span class="IRCSMALLER">= Data/Content Download</span></td>
    <td style="border-collapse: collapse; border: 1px solid #BFBFBF;"><span class="IRCSMALLER">Time Required To transmit Content (After First Packet)</span></td>
  </tr>
</table>
<br/><br/>

<div style="width: 1100px; height: 16px; background-color: #2F3D65;"></div>
<div id="legalese" style="font-size: .8em; width: 1100px; height: 80px; background-color: #374877; color: #889298;">
 <span style="vertical-align: -1em;">
   Copyright &copy;
   <a style="color: #E4E7ED;" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.abcd.com&amp;d=DwMGaQ&amp;c=f6tYRtsKaO6ZKz1QmR9umB6XAUkLS8AoUzroXTzylZ4&amp;r=hTdvbjvcxRAtnXZ6irNX9PUaplXiRTFF7wZG0K1-60sSWsxAZVmItZ-lossuP10Q&amp;m=xwJBdwqDmH6_N3nD37us8B2HuvVxpQK2MxWodvIEdik&amp;s=HNCACIX2mDXN3Oeg-OsDJFixMAyHwSvV-BS-sNolrGo&amp;e=">abcd, Inc</a>.
   All rights reserved.
  </span>
</div>
</div>
</body>
</html>

 

Truncation Error for Loading Data( having length > 255) in .xlsx file from SSIS package.

$
0
0

I am trying to load the data (from Sql Db) to Excel (.xlsx) with the help of Excel Destination task in SSIS.

Getting error : [OLE DB Source 1 [119]] Error: There was an error with OLE DB Source 1.Outputs[OLE DB Source Output].Columns[ClientName] on OLE DB Source 1.Outputs[OLE DB Source Output]. The column status returned was: "Text was truncated or one or more characters had no match in the target code page.".

I tried changing the Version of Excel to 97-2003 (.xls) but the package work fine on local machine and not when deployed on server this is because my machine has both the drivers (ACE and Jet) but Server has only ACE driver.

I also tried different work wrounds like changing the data types to NTEXT/NVARCHAR(500) while creating Excel sheet but still failing the package.

Please help me to load Excel (.xlsx) from ssis package where data lengths are more than 255.

How to pass SSIS package variable when executing SSIS 2012 package through stored procedure?

How to delete files from Sharepoint Online using web service

$
0
0

Hi, 

I want to delete files from Sharepoint online using Sharepoint Web services.

Please help me with code and how to do the same in SSIS 2008 script task with step by step detail, i am new to the scripting task.

Thanks

Am


Amit Srivastava,

NIIT Technologies

Please mark as answer if helpful

Blog:fascinatingsql.blogspot.in

An Integration Services class cannot be found. Make sure that Integration Services is correctly installed on the computer that is running the application. Also, make sure that the 64-bit version of Integration Services is installed if you are running a 64

$
0
0

Hi All,

May be someone can help. I am trying to run packages on server (windows 2012) and SSIS is also installed on the machine but still error as in subject i.e

An Integration Services class cannot be found. Make sure that Integration Services is correctly installed on the computer that is running the application. Also, make sure that the 64-bit version of Integration Services is installed if you are running a 64-bit application.

Any suggestions would be appreciated!


Excel destination doesnt preserve leading 0's

$
0
0

I have an ssis apckage that writes data to an excel file from a table. There is a numeric field with values like "0.4258" etc.

these get written to excel as ".4258", I have tried pre-formatting the excel destination with number/text data formats.

converting to text doesn't work as excel expects DT_WSTR datatype only.

If anyone was able to overcome this problem please share the solution with me.

SSIS date function

$
0
0

(DT_STR,4,1252)DATEPART( "yyyy" , DATEADD("year", -1, getdate())) + "-" +
RIGHT("0" + (DT_STR,4,1252)DATEPART( "mm" , getdate() ), 2) + "-" +
RIGHT("0" + (DT_STR,4,1252)DATEPART( "dd" , getdate() ), 2)

i am using the above function but this will not help me with leap year 

how to modify this 

Data flow extract with where IN clause

$
0
0

I have a table with 5 rows for locationID , I need to extract the data based on active location.

So when i extract source data , I will be using where IN clause

I did a test by importing below in script task  (full result set)

--  select [locationID] from [location] where [Active] = 1

And then in data flow task used a parameter for where IN clause , which seem to be not achievable.

-- In data flow i used

select * from source_table
Where [location] IN (?)

Am getting error as Description: "Invalid character value for cast specification".

Table details  for understanding -

Create table [location]  
(
[locationID] INT,
[Active] BIT
)

Insert into [location] Values (1 , 1)
Insert into [location] Values (2 , 1)
Insert into [location] Values (3 , 1)
Insert into [location] Values (4 , 0)
Insert into [location] Values (5 , 0)


select [locationID] from [location] where [Active] = 1

select * from source_table
Where [location] IN (?)

I can use for each loop but from performance standpoint this seem to be very optimal..  any advise?

How to Insert to Specific Column of Excel

$
0
0

Hi All,

Would like to get advise how we insert to specific Column of Excel. my script is to get total after execute store procedure and insert to L2 as shown below (Beside Total).


I tried to select specific column from the [excel$] but it get error as below and the DTSX file auto close 

Kindly Advise.



SSIS Execution Process consuming all memory vs DataTools 2015 execution

$
0
0

hi folks,
I have created a very small dtsx package that dumps data from Oracle (11g) to SQL Server (2014 Std). The package runs fine at design time, within the DataTools 2015 environment (consumes little memory and finishes normally), however, any time I deploy the package within SSISDB and run it through SQL Agent, it starts consuming all of the RAM on the machine, currently 32gb RAM, then starts using the swap file big time and it eventually fails with "There is insufficient system memory in resource pool 'default' to run this query"

I have tried to change the FastLoadMaxInsertCommitSize of the Destination DataFlow Component, redeploy, rerun, but the package at runtime still takes the entire RAM and eventually runs out of memory.  At design time, as mentioned, runs beautifully, within the 32 bit IDE environment.

Are there additional memory limiting params that can force SSIS Execution to limit the used RAM?  (There are no transforms, sorts or any other complex operations, just a simple source to destination dump.)

thanks bunches,
Cos




SSIS with Rest API

$
0
0


 I am trying to add "System.Web.Extensions.dll" as a reference in visual studio 2019.

I am unable to find the option to add a reference. can they help?


WMI and UNC paths from SSIS pacakge

$
0
0

HI, I want to listen the creation of a new file in a remote folder from my SSIS package but it does not work.

Does the scope is missed?

Using either of the following approaches:

1)

By using xp_cmdshell I am doing the mapping to Y: drive

exec master..xp_cmdshell ' net use Y: \\myserver\L$ /user:myADaccount mypassword /PERSISTENT:YES '


In spite of no errors, the Y: drive is not really created in the server


2)By using the "Execute Process Task" with exe = CMD.exe and params as follows:


NET USE Y: \\myserver\L$  /user:myADaccount mypassword  /PERSISTENT:YES

Here raises a DOS window with the prompt linked to my VS PRoject: C:\AdminSql\folder\folderIntegration Services Project1>

After the assignment the idea is run the second step:


Just call the WMI Event Watcher Task calling my SSIS variable. My understanding is WMI will not recognize a path out of the own caller for that reason I am trying to create a map drive...

My SSIS variable contains:

SELECT * FROM __InstanceCreationEvent WITHIN 10

WHERE TargetInstance ISA 'CIM_DataFile' AND TargetInstance.Name = 'Y:\\myfolder\\subfolder\\PromoTest.xls'


SSIS Package Deployment History/

$
0
0

Hi all, 

I am trying to get the SSIS package deployment history (not the SSIS project project deployment). Through SSISDB.internal.packages I got five rows with a project_version_lsn field, so I guess they are connected to a project deployment as the numbers of that field match with the "Project LSN" of project versions (right click an SSIS Project-> Versions)

And old post pointed to table [msdb].[dbo].[sysssispackages], which my rows are not relevant to my question.

Does anyone figure out where to find this information (If available)?

[MapR][HiveODBC] (79) Failed to reconnect to server.

$
0
0

I'm running the SSIS Package on the production server. we are connecting to Hive Environment using Map R Hive ODBC Connector.

During the package execution getting error like 

Open Database Connectivity (ODBC) error occurred. state: 'HY000'. Native Error Code: 79. [MapR][HiveODBC] (79) Failed to reconnect to server.

How to troubleshoot SSIS package job failed?

$
0
0
The SSIS package executed fine with no errors in Visual Studio but the job failed in SQL Management Studio with Description: "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON." In the SSIS package, the OLE DB connection does not use the anonymous user. So, why is in the Management Studio job, it's saying the anonymous user logon was used?

database 'REPOSTG' because of insufficient disk space in filegroup 'PRIMARY'

$
0
0
Error: 0xC0202009 at DFT - Cleansing TSSEKOLAH 1, OLE DB Destination 1 [593]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Could not allocate a new page for database 'REPOSTG' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
Error: 0xC0209029 at DFT - Cleansing TSSEKOLAH 1, OLE DB Destination 1 [593]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "OLE DB Destination 1.Inputs[OLE DB Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "OLE DB Destination 1.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
Error: 0xC0047022 at DFT - Cleansing TSSEKOLAH 1, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Destination 1" (593) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (606). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

Getting new access_token using client_credential

$
0
0

Hi guys,

Please I need help with a C# code that can help me get a new access_token from an api using the client_credntials using the variable below:

{
"client_id" : "client_id",
"client_secret":"client_secret",
"grant_type":"client_credentials",
"scope":"api"

Thanks


me

Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>