|
@@ -0,0 +1,58 @@
|
|
|
|
|
+<?xml version="1.0"?>
|
|
|
|
|
+<DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts"
|
|
|
|
|
+ DTS:refId="Package"
|
|
|
|
|
+ DTS:CreationDate="10/2/2020 9:49:12 AM"
|
|
|
|
|
+ DTS:CreationName="Microsoft.Package"
|
|
|
|
|
+ DTS:CreatorComputerName="RUIZ"
|
|
|
|
|
+ DTS:CreatorName="GRUPOME\druiz"
|
|
|
|
|
+ DTS:DTSID="{6BD54D67-EC22-4D98-8E0C-3F0C1180C408}"
|
|
|
|
|
+ DTS:ExecutableType="Microsoft.Package"
|
|
|
|
|
+ DTS:LastModifiedProductVersion="15.0.2000.121"
|
|
|
|
|
+ DTS:LocaleID="1033"
|
|
|
|
|
+ DTS:ObjectName="UT-FACT_RETIROS"
|
|
|
|
|
+ DTS:PackageType="5"
|
|
|
|
|
+ DTS:VersionBuild="1"
|
|
|
|
|
+ DTS:VersionGUID="{EA0FEA6C-B7B8-44C3-A17C-6B752F024BFD}">
|
|
|
|
|
+ <DTS:Property
|
|
|
|
|
+ DTS:Name="PackageFormatVersion">8</DTS:Property>
|
|
|
|
|
+ <DTS:Variables />
|
|
|
|
|
+ <DTS:Executables>
|
|
|
|
|
+ <DTS:Executable
|
|
|
|
|
+ DTS:refId="Package\Execute SQL Task"
|
|
|
|
|
+ DTS:CreationName="Microsoft.ExecuteSQLTask"
|
|
|
|
|
+ DTS:Description="Execute SQL Task"
|
|
|
|
|
+ DTS:DTSID="{6402052D-B8D9-4F03-957A-075365D120AB}"
|
|
|
|
|
+ DTS:ExecutableType="Microsoft.ExecuteSQLTask"
|
|
|
|
|
+ DTS:LocaleID="-1"
|
|
|
|
|
+ DTS:ObjectName="Execute SQL Task"
|
|
|
|
|
+ DTS:TaskContact="Execute SQL Task; Microsoft Corporation; SQL Server 2019; © 2019 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1"
|
|
|
|
|
+ DTS:ThreadHint="0">
|
|
|
|
|
+ <DTS:Variables />
|
|
|
|
|
+ <DTS:ObjectData>
|
|
|
|
|
+ <SQLTask:SqlTaskData
|
|
|
|
|
+ SQLTask:Connection="{C795B859-49C9-4952-8EC8-B3DA2B9B7F89}"
|
|
|
|
|
+ SQLTask:SqlStatementSource="UPDATE UT.FAC_RETIROS
 SET 
 UT.FAC_RETIROS.COD_PROYECTO = PR.COD_PROYECTO
FROM
(
 SELECT COD_PROYECTO, 
 M_OPE, 
 Y_OPE, 
 FECHA_INICIO, 
 FECHA_FIN, 
 PUNTO_MEDIDA
 FROM CONCILIACION.PROYECTOS
) AS PR
WHERE UT.FAC_RETIROS.COD_EQUIPO = PR.PUNTO_MEDIDA
 --AND MONTH(UT.FAC_INYECCIONES.FECHA)=PR.M_OPE
 --AND YEAR(UT.FAC_INYECCIONES.FECHA)=PR.Y_OPE
 AND UT.FAC_RETIROS.FECHA >= PR.FECHA_INICIO
 AND UT.FAC_RETIROS.FECHA <= PR.FECHA_FIN
	 AND UT.FAC_RETIROS.COD_PM='c08'
	 AND UT.FAC_RETIROS.FECHA >= DATEADD(DAY, -62, GETDATE())
" xmlns:SQLTask="www.microsoft.com/sqlserver/dts/tasks/sqltask" />
|
|
|
|
|
+ </DTS:ObjectData>
|
|
|
|
|
+ </DTS:Executable>
|
|
|
|
|
+ </DTS:Executables>
|
|
|
|
|
+ <DTS:DesignTimeProperties><![CDATA[<?xml version="1.0"?>
|
|
|
|
|
+<!--This CDATA section contains the layout information of the package. The section includes information such as (x,y) coordinates, width, and height.-->
|
|
|
|
|
+<!--If you manually edit this section and make a mistake, you can delete it. -->
|
|
|
|
|
+<!--The package will still be able to load normally but the previous layout information will be lost and the designer will automatically re-arrange the elements on the design surface.-->
|
|
|
|
|
+<Objects
|
|
|
|
|
+ Version="8">
|
|
|
|
|
+ <!--Each node below will contain properties that do not affect runtime behavior.-->
|
|
|
|
|
+ <Package
|
|
|
|
|
+ design-time-name="Package">
|
|
|
|
|
+ <LayoutInfo>
|
|
|
|
|
+ <GraphLayout
|
|
|
|
|
+ Capacity="4" xmlns="clr-namespace:Microsoft.SqlServer.IntegrationServices.Designer.Model.Serialization;assembly=Microsoft.SqlServer.IntegrationServices.Graph">
|
|
|
|
|
+ <NodeLayout
|
|
|
|
|
+ Size="163,42"
|
|
|
|
|
+ Id="Package\Execute SQL Task"
|
|
|
|
|
+ TopLeft="510,220" />
|
|
|
|
|
+ </GraphLayout>
|
|
|
|
|
+ </LayoutInfo>
|
|
|
|
|
+ </Package>
|
|
|
|
|
+</Objects>]]></DTS:DesignTimeProperties>
|
|
|
|
|
+</DTS:Executable>
|