{"id":1636,"date":"2022-01-07T08:03:23","date_gmt":"2022-01-07T08:03:23","guid":{"rendered":"http:\/\/flace.de\/?p=1636"},"modified":"2026-09-08T19:20:04","modified_gmt":"2026-09-08T19:20:04","slug":"edi-einrichtung-intern-nur-fuer-systembetreuer","status":"publish","type":"post","link":"https:\/\/flace.de\/?p=1636","title":{"rendered":"EDI Einrichtung Intern nur f\u00fcr Systembetreuer"},"content":{"rendered":"<p>Hinweise zur Implementierung nur f\u00fcr Fachpersonal:<\/p>\n<p><!--more--><strong><span style=\"color: #ff0000;\">Kurze Checkliste f\u00fcr den EDI<\/span><\/strong><br \/>\n<span style=\"color: #008000;\">SQL Scripte s.u. korrekt ausgef\u00fchrt<\/span><br \/>\n<span style=\"color: #0000ff;\">Dienst bin_wflowservice installiert und konfiguriert<\/span><br \/>\n<span style=\"color: #800080;\">UNC Datenbankausgabe: \\\\RechnerName\\KWPNETZ\\BNWIN\\SQL2EDI\\<\/span><br \/>\n<span style=\"color: #800000;\"><span style=\"font-size: 1rem;\">Bncontrl.ini&nbsp;<\/span>[KWP] EAK=1<\/span><br \/>\n<span style=\"font-size: 1rem;\"><span style=\"color: #000080;\">K:\\bnwin\\Vorlagen\\wflowEreignisseIndividuell.xml<\/span><br \/>\n<\/span><span style=\"color: #808080;\">K:\\bnwin\\Vorlagen\\wflowEreignisse.xml<\/span><br \/>\n<span style=\"color: #808000;\">C:\\Program Files (x86)\\BnServerDienste\\bnNETWFlowService.log<\/span><br \/>\n<span style=\"color: #333399;\">Die ID in der wflowEreignisseIndividuell.xml z.B. &lt;Aktion Bezeichnung =&#8220;Druck Rechnung ZK 93&#8243; Id =&#8220;Rechnung_ZK_93&#8243;&gt; muss \u00fcbereinstimmen mit der ID aus der Spalte Beschreibung der Tabelle Trigger2EDI<\/span><\/p>\n<p><span style=\"font-size: 1rem;\">1.<br \/>\n<\/span>Im SQL-Server muss als erstes das Skript<br \/>\n<strong><span style=\"color: #0000ff;\">\u201e01Dateiexport aus SQL _Voraussetzung.sql\u201c<\/span><\/strong><br \/>\nausgef\u00fchrt werden um den Server f\u00fcr das erzeugen der XML-Dateien freizuschalten.<br \/>\n<span style=\"color: #ff6600;\">&#8212; To allow advanced options to be changed.<\/span><br \/>\n<span style=\"color: #ff6600;\">EXEC sp_configure &#8217;show advanced options&#8216;, 1<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">&#8212; To update the currently configured value for advanced options.<\/span><br \/>\n<span style=\"color: #ff6600;\">RECONFIGURE<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">&#8212; To enable the feature.<\/span><br \/>\n<span style=\"color: #ff6600;\">EXEC sp_configure &#8218;xp_cmdshell&#8216;, 1<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">&#8212; To update the currently configured value for this feature.<\/span><br \/>\n<span style=\"color: #ff6600;\">RECONFIGURE<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><\/p>\n<p>2.<br \/>\nAls n\u00e4chstes wird das Skript <strong><span style=\"color: #0000ff;\">\u201e02Trigger2Edi_Tabelle.sql\u201c<\/span><\/strong> ausgef\u00fchrt um die Tabelle&nbsp;Trigger2Edi anzulegen aus der die XML-Dateien sp\u00e4ter erzeugt werden.<\/p>\n<p><span style=\"color: #ff6600;\">USE <strong><span style=\"color: #ff0000;\">[BNWINS]<\/span><\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">\/****** Object: Table [dbo].[Trigger2EDI] Script Date: 01.08.2013 14:51:10 ******\/<\/span><br \/>\n<span style=\"color: #ff6600;\">SET ANSI_NULLS ON<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\"><span style=\"font-size: 1rem;\">SET QUOTED_IDENTIFIER ON<br \/>\n<\/span><span style=\"font-size: 1rem;\">GO<br \/>\n<\/span>SET ANSI_PADDING ON<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">CREATE TABLE [dbo].[Trigger2EDI](<\/span><br \/>\n<span style=\"color: #ff6600;\">[Mandant] [varchar](5) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Benutzerid] [varchar](10) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Vorgang] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Vorgangsnummer] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Adresse] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter1] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter1_ID] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter1_Kuerzel] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter2] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter2_ID] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter2_Kuerzel] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter3] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter3_ID] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter3_Kuerzel] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter4] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter4_ID] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter4_Kuerzel] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter5] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter5_ID] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Platzhalter5_Kuerzel] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[erstellt] [datetime] NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[Beschreibung] [varchar](50) NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[ID] [bigint] IDENTITY(1,1) NOT NULL,<\/span><br \/>\n<span style=\"color: #ff6600;\">[xmlerzeugt] [datetime] NULL<\/span><br \/>\n<span style=\"color: #ff6600;\">) ON [PRIMARY]<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\"><span style=\"font-size: 1rem;\">SET ANSI_PADDING OFF<br \/>\n<\/span><span style=\"font-size: 1rem;\">GO<\/span><\/span><span style=\"font-size: 1rem;\"><br \/>\n<\/span><\/p>\n<p>3.<br \/>\nDie XML Dateien die der SQL Server erzeugen kann d\u00fcrfen keine Sonderzeichen oder&nbsp;Umlaute enthalten Deshalb gibt es eine Funktion die Sonderzeichen entfernt. Dieses Skript&nbsp;<strong><span style=\"color: #0000ff;\">\u201e03Function Remove ASCII.sql\u201c<\/span><\/strong> muss ebenfalls ausgef\u00fchrt werden.<\/p>\n<p><span style=\"color: #ff6600;\">USE <strong><span style=\"color: #ff0000;\">[BNWINS]<\/span><\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">\/****** Object: UserDefinedFunction [dbo].[Remove_ASCII_Char] Script Date: 15.01.2014 15:48:43 ******\/<\/span><br \/>\n<span style=\"color: #ff6600;\">SET ANSI_NULLS ON<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">SET QUOTED_IDENTIFIER ON<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\"><span style=\"font-size: 1rem;\">CREATE FUNCTION [dbo].[Remove_ASCII_Char] (@CharData varchar(8000))<\/span><span style=\"font-size: 1rem;\">RETURNS varchar(8000)<br \/>\n<\/span><span style=\"font-size: 1rem;\">AS<br \/>\n<\/span>BEGIN<\/span><br \/>\n<span style=\"color: #ff6600;\">DECLARE @Index INT,<\/span><br \/>\n<span style=\"color: #ff6600;\">@strASCII varchar(8000),<\/span><br \/>\n<span style=\"color: #ff6600;\">@strASCIIChar INT<\/span><br \/>\n<span style=\"color: #ff6600;\"><span style=\"font-size: 1rem;\">SET @Index = 1<br \/>\n<\/span><span style=\"font-size: 1rem;\">SET @strASCII = &#8220;<br \/>\n<\/span><span style=\"font-size: 1rem;\">WHILE @Index &lt; LEN(@CharData)+1<br \/>\n<\/span><span style=\"font-size: 1rem;\">BEGIN<br \/>\n<\/span><span style=\"font-size: 1rem;\">SET @strASCIIChar = ASCII(SUBSTRING(@CharData, @Index, 1))<br \/>\n<\/span><span style=\"font-size: 1rem;\">IF @strASCIIChar between 48 and 58 or @strASCIIChar BETWEEN 65 and 122 or @strASCIIChar in (32, 45, 46,196, 228,214,246, 220, 252, 223)<\/span><span style=\"font-size: 1rem;\"><br \/>\n<\/span><\/span><\/p>\n<p><span style=\"color: #ff6600;\">BEGIN<\/span><br \/>\n<span style=\"color: #ff6600;\">&#8212; Zusammenbauen Output<\/span><br \/>\n<span style=\"color: #ff6600;\">SET @strASCII = @strASCII + CHAR(@strASCIIChar)<\/span><br \/>\n<span style=\"color: #ff6600;\">END<\/span><br \/>\n<span style=\"color: #ff6600;\">SET @Index = @Index + 1<\/span><br \/>\n<span style=\"color: #ff6600;\">END<\/span><br \/>\n<span style=\"color: #ff6600;\">RETURN @strASCII<\/span><br \/>\n<span style=\"color: #ff6600;\">END<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><\/p>\n<p>4.<br \/>\nUm die Ergebnisse der Schritte 2 und 3 Zusammenzuf\u00fchren muss das Skript <span style=\"color: #ff6600;\">\u201e04Skript VIEW Trigger2EDI zu XML_2012.sql\u201c<\/span> ausgef\u00fchrt werden. Es wird eine Sicht erzeugt die die Eintr\u00e4ge&nbsp;der Trigger2Edi_Tabelle durch die Sonderzeichenfunktion bereinigt und f\u00fcr die XML&nbsp;Erzeugung bereit stellt.<\/p>\n<p><span style=\"color: #ff6600;\">USE <strong><span style=\"color: #ff0000;\">[BNWINS]<\/span><\/strong><\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">\/****** Object: View [dbo].[View\u001f_Trigger2EDI] Script Date: 15.01.2014 15:50:58 ******\/<\/span><br \/>\n<span style=\"color: #ff6600;\">SET ANSI_NULLS ON<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">SET QUOTED_IDENTIFIER ON<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><br \/>\n<span style=\"color: #ff6600;\">CREATE VIEW [dbo].[View\u001f_Trigger2EDI]<\/span><br \/>\n<span style=\"color: #ff6600;\">AS<\/span><br \/>\n<span style=\"color: #ff6600;\">SELECT Mandant, Benutzerid, Vorgang, Vorgangsnummer, Adresse, dbo.Remove_ASCII_Char(Platzhalter1) AS Platzhalter1, <\/span><br \/>\n<span style=\"color: #ff6600;\">Platzhalter1_ID, Platzhalter1_Kuerzel, dbo.Remove_ASCII_Char(Platzhalter2) AS Platzhalter2, Platzhalter2_ID, Platzhalter2_Kuerzel, <\/span><br \/>\n<span style=\"color: #ff6600;\">dbo.Remove_ASCII_Char(Platzhalter3) AS Platzhalter3, Platzhalter3_ID, Platzhalter3_Kuerzel, dbo.Remove_ASCII_Char(Platzhalter4) AS Platzhalter4, <\/span><br \/>\n<span style=\"color: #ff6600;\">Platzhalter4_ID, Platzhalter4_Kuerzel, dbo.Remove_ASCII_Char(Platzhalter5) AS Platzhalter5, Platzhalter5_ID, Platzhalter5_Kuerzel, <\/span><br \/>\n<span style=\"color: #ff6600;\">erstellt, Beschreibung, ID, xmlerzeugt<\/span><br \/>\n<span style=\"color: #ff6600;\">FROM dbo.Trigger2EDI<\/span><br \/>\n<span style=\"color: #ff6600;\">GO<\/span><\/p>\n<p>5.<br \/>\nNun muss der Trigger angelegt werden der das Ereignis erkennt und einen Eintrag in der&nbsp;Tabelle Trigger2Edi macht. Hierzu gibt es ein Excel \u00dcbersichtsblatt welche EDIs momentan existieren und auf welche Ereignisse diese reagieren. &nbsp;Im Falle des korrekten Ereignisses muss als Folge dann ein Datensatz in der Tabelle Trigger2Edi erzeugt worden sein.<\/p>\n<p>6.<br \/>\nAls n\u00e4chstes muss ein SQL-Server Job mit den Namen SQL2EDI angelegt werden. Dabei wird als Schritt in diesem Job das Skript \u201e<strong><span style=\"color: #0000ff;\">05Skript Trigger2EDI zu XML_2012.sql\u201c<\/span><\/strong> hinterlegt. Dieses Skript am besten zun\u00e4chst in einem normalen SQL Fenster \u00f6ffnen und testen und erst dann in einem Job bauen.<br \/>\n<span style=\"color: #0000ff;\">Hier m\u00fcssen noch&nbsp; Zeilen am Kundensystem angepasst werden.<\/span><br \/>\nBei der ersten gelb markierten Zeile muss der Pfad so angepasst werden, dass er zu dem XML \u00dcbergabeordner des Kunden passt. Hierzu kann im Ordner bnwin ein <span style=\"color: #3366ff;\">neuer Ordner<\/span> SQL2EDI angelegt werden. Wichtig ist das der Ordner auf einer lokalen Platte des SQL-Servers liegt.<br \/>\nBei der zweiten <strong><span style=\"color: #ff0000;\">rot<\/span><\/strong> markierten Zeile muss der Name der SQL-Server Instanz des Kunden sowie Benutzername<strong><span style=\"color: #ff0000;\"> (sa)<\/span><\/strong> und das Passwort hinterlegt werden.<br \/>\nBei den <strong><span style=\"color: #ff0000;\">rot<\/span><\/strong> hinterlegten Stellen muss ggf. der Datenbankname auf den Datenbanknamen des Kunden angepasst werden.<\/p>\n<p><span style=\"color: #ff6600;\">&#8212; KWP EDI XML Erzeugung<\/span><br \/>\n<span style=\"color: #ff6600;\">&#8212; Erzeugt aus dem \u00e4ltesten Eintr\u00e4gen in der SQL2EDI Tabelle ohne xmlerzeugt Datum eine XML Datei im hinterlegten Pfad.<\/span><\/p>\n<p><span style=\"color: #ff6600;\">DECLARE <\/span><br \/>\n<span style=\"color: #ff6600;\">@FileName VARCHAR(100),<\/span><br \/>\n<span style=\"color: #ff6600;\">@SQLCmd VARCHAR(5000),<\/span><br \/>\n<span style=\"color: #ff6600;\">@dothis varchar(1)<\/span><\/p>\n<p><span style=\"color: #ff6600;\">&#8212; Hier den Pfad (inkl. Dateinamen) wo die XML Datei erzeugt werden soll eingeben <\/span><br \/>\n<span style=\"color: #ff6600;\">select<\/span><br \/>\n<span style=\"color: #ff6600;\">@FileName = &#8218;<strong><span style=\"color: #ff0000;\">C:\\BNWIN\\SQL2EDI<\/span><\/strong>\\SQLEreignisaktivitaet&#8216; + Replace (REPLACE( CONVERT(VARCHAR(26),getdate(),113),&#8216;:&#8216;,&#8217;_&#8216;), &#8218; &#8218; , &#8218;_&#8216;) +&#8216;.xml&#8216;<\/span><\/p>\n<p><span style=\"color: #ff6600;\">&#8212; Hier wird die Bedingung definiert wann eine XML Datei erzeugt werden soll <\/span><br \/>\n<span style=\"color: #ff6600;\">Set @dothis = (Select Case when (SELECT count (*)<\/span><br \/>\n<span style=\"color: #ff6600;\">FROM [<strong><span style=\"color: #ff0000;\">BNWINS<\/span><\/strong>].[dbo].[Trigger2EDI] where xmlerzeugt is null ) &gt; 0 then &#8218;1&#8216; else &#8218;0&#8216; end) <\/span><\/p>\n<p><span style=\"color: #ff6600;\">DECLARE @ID as bigint<\/span><br \/>\n<span style=\"color: #ff6600;\">SET @ID = (SELECT ( min (id) ) FROM [<strong><span style=\"color: #ff0000;\">BNWINS<\/span><\/strong>].[dbo].[Trigger2Edi] where xmlerzeugt is null )<\/span><\/p>\n<p><span style=\"color: #ff6600;\">&#8212; Hier wird der Inhalt der XML Datei festgelegt<\/span><br \/>\n<span style=\"color: #ff6600;\">SELECT @SQLCmd = &#8218;bcp &#8218; <\/span><br \/>\n<span style=\"color: #ff6600;\">+ &#8218;&#8220;SELECT Mandant as Mandant,ISnull (Benutzerid, &#8220; &#8220;) as Benutzerid, Beschreibung as ID, Vorgang as Vorgang, Vorgangsnummer as Vorgangsnummer,&#8217;+<\/span><br \/>\n<span style=\"color: #ff6600;\">+&#8216; ISnull (Adresse, &#8220; &#8220;) as Adresse, isnull (Platzhalter1_ID, &#8220;LEER&#8220;) as &#8220;Platzhalter\/Platzhalter1\/PlatzhalterID&#8220;, ISNULL ( Platzhalter1_Kuerzel, &#8220;$LEER&#8220;) as &#8220;Platzhalter\/Platzhalter1\/Kuerzel&#8220; , isnull (Replace(Replace(Replace(Replace (Platzhalter1,&#8220;\u00fc&#8220;, &#8220;ue&#8220;),&#8220;\u00f6&#8220;, &#8220;oe&#8220;), &#8220;\u00e4&#8220;, &#8220;ae&#8220;),&#8220;\u00df&#8220;, &#8220;ss&#8220;), &#8220;0&#8220;) as &#8220;Platzhalter\/Platzhalter1\/Wert&#8220; ,&#8217;+<\/span><br \/>\n<span style=\"color: #ff6600;\">+&#8216; isnull (Platzhalter2_ID, &#8220;LEER2&#8220;) as &#8220;Platzhalter\/Platzhalter2\/PlatzhalterID&#8220;, ISNULL ( Platzhalter2_Kuerzel, &#8220;$LEER2&#8220;) as &#8220;Platzhalter\/Platzhalter2\/Kuerzel&#8220; , isnull (Replace(Replace(Replace(Replace (Platzhalter2,&#8220;\u00fc&#8220;, &#8220;ue&#8220;),&#8220;\u00f6&#8220;, &#8220;oe&#8220;), &#8220;\u00e4&#8220;, &#8220;ae&#8220;),&#8220;\u00df&#8220;, &#8220;ss&#8220;), &#8220;0&#8220;) as &#8220;Platzhalter\/Platzhalter2\/Wert&#8220;,&#8217;+<\/span><br \/>\n<span style=\"color: #ff6600;\">+&#8216; isnull (Platzhalter3_ID, &#8220;LEER3&#8220;) as &#8220;Platzhalter\/Platzhalter3\/PlatzhalterID&#8220;, ISNULL ( Platzhalter3_Kuerzel, &#8220;$LEER3&#8220;) as &#8220;Platzhalter\/Platzhalter3\/Kuerzel&#8220; , isnull (Replace(Replace(Replace(Replace (Platzhalter3,&#8220;\u00fc&#8220;, &#8220;ue&#8220;),&#8220;\u00f6&#8220;, &#8220;oe&#8220;), &#8220;\u00e4&#8220;, &#8220;ae&#8220;),&#8220;\u00df&#8220;, &#8220;ss&#8220;), &#8220;0&#8220;) as &#8220;Platzhalter\/Platzhalter3\/Wert&#8220;,&#8217;+<\/span><br \/>\n<span style=\"color: #ff6600;\">+&#8216; isnull (Platzhalter4_ID, &#8220;LEER4&#8220;) as &#8220;Platzhalter\/Platzhalter4\/PlatzhalterID&#8220;, ISNULL ( Platzhalter4_Kuerzel, &#8220;$LEER4&#8220;) as &#8220;Platzhalter\/Platzhalter4\/Kuerzel&#8220; , isnull (Replace(Replace(Replace(Replace (Platzhalter4,&#8220;\u00fc&#8220;, &#8220;ue&#8220;),&#8220;\u00f6&#8220;, &#8220;oe&#8220;), &#8220;\u00e4&#8220;, &#8220;ae&#8220;),&#8220;\u00df&#8220;, &#8220;ss&#8220;), &#8220;0&#8220;) as &#8220;Platzhalter\/Platzhalter4\/Wert&#8220;,&#8217;+<\/span><br \/>\n<span style=\"color: #ff6600;\">+&#8216; isnull (Platzhalter5_ID, &#8220;LEER5&#8220;) as &#8220;Platzhalter\/Platzhalter5\/PlatzhalterID&#8220;, ISNULL ( Platzhalter5_Kuerzel, &#8220;$LEER5&#8220;) as &#8220;Platzhalter\/Platzhalter5\/Kuerzel&#8220; , isnull (Replace(Replace(Replace(Replace (Platzhalter5,&#8220;\u00fc&#8220;, &#8220;ue&#8220;),&#8220;\u00f6&#8220;, &#8220;oe&#8220;), &#8220;\u00e4&#8220;, &#8220;ae&#8220;),&#8220;\u00df&#8220;, &#8220;ss&#8220;), &#8220;0&#8220;) as &#8220;Platzhalter\/Platzhalter5\/Wert&#8220;&#8217;+<\/span><br \/>\n<span style=\"color: #ff6600;\">+ &#8218; FROM [<strong><span style=\"color: #ff0000;\">Bnwins<\/span><\/strong>].[dbo].[View\\_Trigger2EDI] where id = &#8218;<\/span><br \/>\n<span style=\"color: #ff6600;\">+ &#8220; + cast ( @ID as varchar) + &#8220; <\/span><br \/>\n<span style=\"color: #ff6600;\">+ &#8218; FOR XML PATH (&#8220;Ereignis&#8220;), ROOT(&#8220;Ereignisse&#8220;), TYPE &#8222;&#8218; <\/span><br \/>\n<span style=\"color: #ff6600;\">+ &#8218; queryout &#8218; <\/span><br \/>\n<span style=\"color: #ff6600;\">+ @FileName <\/span><br \/>\n<span style=\"color: #ff6600;\">+ &#8218; -c -T -C -t -S (local)\\<strong><span style=\"color: #ff0000;\">TFSQL2012<\/span><\/strong> -U <strong><span style=\"color: #ff0000;\">sa<\/span><\/strong> -P <span style=\"color: #ff0000;\"><strong>kwpsarix<\/strong><\/span>&#8218;<\/span><\/p>\n<p><span style=\"color: #ff6600;\">&#8212; SQL Befehl zur Ueberpruefung ausgeben<\/span><br \/>\n<span style=\"color: #ff6600;\">&#8211;SELECT @SQLCmd AS &#8218;Command to execute&#8216;<\/span><br \/>\n<span style=\"color: #ff6600;\">&#8211;XML Datei erzeugen<\/span><br \/>\n<span style=\"color: #ff6600;\">if @dothis = 1 EXECUTE master..xp_cmdshell @SQLCmd<\/span><br \/>\n<span style=\"color: #ff6600;\">if @dothis = 1 Update <strong><span style=\"color: #ff0000;\">[BNWINS<\/span><\/strong>].[dbo].[Trigger2Edi] set xmlerzeugt = getdate() where ID = @id<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hinweise zur Implementierung nur f\u00fcr Fachpersonal:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[399],"tags":[],"class_list":["post-1636","post","type-post","status-publish","format-standard","hentry","category-aktivitaeten"],"_links":{"self":[{"href":"https:\/\/flace.de\/index.php?rest_route=\/wp\/v2\/posts\/1636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flace.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flace.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flace.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flace.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1636"}],"version-history":[{"count":8,"href":"https:\/\/flace.de\/index.php?rest_route=\/wp\/v2\/posts\/1636\/revisions"}],"predecessor-version":[{"id":2255,"href":"https:\/\/flace.de\/index.php?rest_route=\/wp\/v2\/posts\/1636\/revisions\/2255"}],"wp:attachment":[{"href":"https:\/\/flace.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flace.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flace.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}