<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>http://wiki.netsitech.com/index.php?action=history&amp;feed=atom&amp;title=Progetti%3ACRCS-paper%2FMigrazione_Utenti%2FScript</id>
	<title>Progetti:CRCS-paper/Migrazione Utenti/Script - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.netsitech.com/index.php?action=history&amp;feed=atom&amp;title=Progetti%3ACRCS-paper%2FMigrazione_Utenti%2FScript"/>
	<link rel="alternate" type="text/html" href="http://wiki.netsitech.com/index.php?title=Progetti:CRCS-paper/Migrazione_Utenti/Script&amp;action=history"/>
	<updated>2026-05-08T04:32:35Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>http://wiki.netsitech.com/index.php?title=Progetti:CRCS-paper/Migrazione_Utenti/Script&amp;diff=4402&amp;oldid=prev</id>
		<title>Mazzotti il 11:56, 3 dic 2012</title>
		<link rel="alternate" type="text/html" href="http://wiki.netsitech.com/index.php?title=Progetti:CRCS-paper/Migrazione_Utenti/Script&amp;diff=4402&amp;oldid=prev"/>
		<updated>2012-12-03T11:56:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Versione delle 11:56, 3 dic 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;vbs&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;vb&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dim FileValid&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dim FileValid&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dim ConnectionString&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dim ConnectionString&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mazzotti</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.netsitech.com/index.php?title=Progetti:CRCS-paper/Migrazione_Utenti/Script&amp;diff=4401&amp;oldid=prev</id>
		<title>Mazzotti: Creata pagina con '&lt;code vbs&gt; Dim FileValid Dim ConnectionString  ConnectionString = &quot;Provider=sqloledb;Server=DBDVLP;Database=CARICESE;User ID=paper-admin;password=X4LT27aL&quot;  set objBL = CreateObj...'</title>
		<link rel="alternate" type="text/html" href="http://wiki.netsitech.com/index.php?title=Progetti:CRCS-paper/Migrazione_Utenti/Script&amp;diff=4401&amp;oldid=prev"/>
		<updated>2012-12-03T11:56:26Z</updated>

		<summary type="html">&lt;p&gt;Creata pagina con &amp;#039;&amp;lt;code vbs&amp;gt; Dim FileValid Dim ConnectionString  ConnectionString = &amp;quot;Provider=sqloledb;Server=DBDVLP;Database=CARICESE;User ID=paper-admin;password=X4LT27aL&amp;quot;  set objBL = CreateObj...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;code vbs&amp;gt;&lt;br /&gt;
Dim FileValid&lt;br /&gt;
Dim ConnectionString&lt;br /&gt;
&lt;br /&gt;
ConnectionString = &amp;quot;Provider=sqloledb;Server=DBDVLP;Database=CARICESE;User ID=paper-admin;password=X4LT27aL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
set objBL = CreateObject(&amp;quot;SQLXMLBulkLoad.SQLXMLBulkload.4.0&amp;quot;)&lt;br /&gt;
objBL.ConnectionString = ConnectionString&lt;br /&gt;
objBL.ErrorLogFile = &amp;quot;error.log&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'Validate the data file prior to bulkload&lt;br /&gt;
Dim sOutput &lt;br /&gt;
sOutput = ValidateFile(&amp;quot;utenti_caricese.xml&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;mappingUtentiCARICESE.xml&amp;quot;)&lt;br /&gt;
WScript.Echo sOutput&lt;br /&gt;
&lt;br /&gt;
If FileValid Then&lt;br /&gt;
   ' Check constraints and initiate transaction (if needed)&lt;br /&gt;
   ' objBL.CheckConstraints = True&lt;br /&gt;
   ' objBL.Transaction=True&lt;br /&gt;
   &lt;br /&gt;
  'Execute XML bulkload using file.&lt;br /&gt;
  objBL.Execute &amp;quot;mappingUtentiCARICESE.xml&amp;quot;, &amp;quot;utenti_caricese.xml&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  set objBL=Nothing&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
Function ValidateFile(strXmlFile,strUrn,strXsdFile)&lt;br /&gt;
    &lt;br /&gt;
   ' Create a schema cache and add SampleSchema.xml to it.&lt;br /&gt;
   Dim xs, fso, sAppPath&lt;br /&gt;
   Set fso = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;) &lt;br /&gt;
   Set xs = CreateObject(&amp;quot;MSXML2.XMLSchemaCache.6.0&amp;quot;)&lt;br /&gt;
   sAppPath = fso.GetFolder(&amp;quot;.&amp;quot;) &lt;br /&gt;
   xs.Add strUrn, sAppPath &amp;amp; &amp;quot;\&amp;quot; &amp;amp; strXsdFile&lt;br /&gt;
&lt;br /&gt;
   ' Create an XML DOMDocument object.&lt;br /&gt;
   Dim xd &lt;br /&gt;
   Set xd = CreateObject(&amp;quot;MSXML2.DOMDocument.6.0&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
   ' Assign the schema cache to the DOM document.&lt;br /&gt;
   ' schemas collection.&lt;br /&gt;
   Set xd.schemas = xs&lt;br /&gt;
&lt;br /&gt;
   ' Load XML document as DOM document.&lt;br /&gt;
   xd.async = False&lt;br /&gt;
   xd.Load sAppPath &amp;amp; &amp;quot;\&amp;quot; &amp;amp; strXmlFile&lt;br /&gt;
&lt;br /&gt;
   ' Return validation results in message to the user.&lt;br /&gt;
   If xd.parseError.errorCode &amp;lt;&amp;gt; 0 Then&lt;br /&gt;
        ValidateFile = &amp;quot;Validation failed on &amp;quot; &amp;amp; _&lt;br /&gt;
             strXmlFile &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;
             &amp;quot;=====================&amp;quot; &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;
             &amp;quot;Reason: &amp;quot; &amp;amp; xd.parseError.reason &amp;amp; _&lt;br /&gt;
             vbCrLf &amp;amp; &amp;quot;Source: &amp;quot; &amp;amp; _&lt;br /&gt;
             xd.parseError.srcText &amp;amp; _&lt;br /&gt;
             vbCrLf &amp;amp; &amp;quot;Line: &amp;quot; &amp;amp; _&lt;br /&gt;
             xd.parseError.Line &amp;amp; vbCrLf&lt;br /&gt;
             FileValid = False&lt;br /&gt;
    Else&lt;br /&gt;
        ValidateFile = &amp;quot;Validation succeeded for &amp;quot; &amp;amp; _&lt;br /&gt;
             strXmlFile &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;
             &amp;quot;======================&amp;quot; &amp;amp; _&lt;br /&gt;
             vbCrLf &amp;amp; &amp;quot;Contents to be bulkloaded&amp;quot; &amp;amp; vbCrLf&lt;br /&gt;
             FileValid = True&lt;br /&gt;
    End If&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mazzotti</name></author>
		
	</entry>
</feed>