<?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 Re: Is there a tool to �??disconnect�?� all the users at a time? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676137#M38299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your mistake is with the pathname string - you are mixing conventions.&amp;nbsp; I prefer to stick with passing 'raw' strings so that I do not generally have to concern myself further with backslashes being interpreted by python as an escape sequence (the preceding 'r' means interpret as 'raw' string) -- see the below where I am testing the strings via IDLE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;gt;&amp;gt;&amp;gt; # the pathname as you have stated it:
&amp;gt;&amp;gt;&amp;gt; pathname = "r'Database Connections\Sa_D1.sde'"

&amp;gt;&amp;gt;&amp;gt; # this is incorrect, directly converting all inside the double-quotes to string:
&amp;gt;&amp;gt;&amp;gt; print pathname
r'Database Connections\Sa_D1.sde'

&amp;gt;&amp;gt;&amp;gt; # removing the double-quotes:
&amp;gt;&amp;gt;&amp;gt; pathname = r'Database Connections\Sa_D1.sde'

&amp;gt;&amp;gt;&amp;gt; # this is correct, with 'r' serving in Python to use raw string:
&amp;gt;&amp;gt;&amp;gt; print pathname
Database Connections\Sa_D1.sde


&amp;gt;&amp;gt;&amp;gt; # quick example of raw versus non-raw interpretation:

&amp;gt;&amp;gt;&amp;gt; # this is without the preceding 'r':
&amp;gt;&amp;gt;&amp;gt; nonRawExample = '\tAtest'

&amp;gt;&amp;gt;&amp;gt; # this string is actually interpreted to include a tab:
&amp;gt;&amp;gt;&amp;gt; print nonRawExample
 Atest

&amp;gt;&amp;gt;&amp;gt; # this string includes the preceding 'r' for the raw representation:
&amp;gt;&amp;gt;&amp;gt; useRawExample = r'\tAtest'

&amp;gt;&amp;gt;&amp;gt; # as desired, the string is interpreted as is, or 'raw', to include the backslash character:
&amp;gt;&amp;gt;&amp;gt; print useRawExample
\tAtest
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, this is a matter of preference, but I prefer whenever possible to pass variables, not strings, to my tool, as in this example, particularly when there are a number of params to feed in - such as the 11 params for ReconcileVersions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# the ReconcileVersions pathname strings
inputDB = r'\\YourServerUNC\folderMaybeThisContainsType\SDEfiles\admins.sde'
logFile = r'C:\temp\reconcilelog.txt'

# other ReconcileVersions defined params
all = 'ALL_VERSIONS'
target = 'sde.DEFAULT'
versionList = arcpy.ListVersions(inputDB)
lock = 'LOCK_ACQUIRED'
abort = 'NO_ABORT'
conflict = 'BY_OBJECT'
resolve = 'FAVOR_TARGET_VERSION'
post = 'POST'
deleteVer = 'DELETE_VERSION'

# Execute the ReconcileVersions tool.
arcpy.ReconcileVersions_management(inputDB, all, target, versionList, lock, abort, conflict, resolve, post, deleteVer, logFile)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps - I think it makes the code a little more readable and accessible for troubleshooting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:30:25 GMT</pubDate>
    <dc:creator>T__WayneWhitley</dc:creator>
    <dc:date>2021-12-12T04:30:25Z</dc:date>
    <item>
      <title>Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676134#M38296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a tool to �??disconnect�?� all the users at a time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I�??m wondering if there is a tool that can disconnect all the users at a time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]21098[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 19:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676134#M38296</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-01-26T19:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676135#M38297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;...almost had it --- add to your search string 'users', i.e., 'disconnect users' and should get this which I think is what you are looking for:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DisconnectUser (arcpy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » ArcPy » ArcPy functions&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000061000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000061000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in the very 1st example, there is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.DisconnectUser("Database Connections/admin@sde.sde", "ALL")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have ArcGIS 10.1 installed yet so cannot test it...but if it works, this is much better than the 'disconnection procedure' I have used before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...you may want to test for who/what is connected first, with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ListUsers (arcpy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Desktop » Geoprocessing » ArcPy » ArcPy functions&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000030000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000030000000&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ahh, but there is a catch, probably a design feature 'failsafe' not to accidentally disconnect the admin user - from the webhelp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Note:&amp;nbsp; DisconnectUser will not disconnect the user who is executing the function."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 22:29:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676135#M38297</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-26T22:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676136#M38298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...almost had it --- add to your search string 'users', i.e., 'disconnect users' and should get this which I think is what you are looking for:&lt;BR /&gt;&lt;BR /&gt;DisconnectUser (arcpy)&lt;BR /&gt;Desktop » Geoprocessing » ArcPy » ArcPy functions&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000061000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000061000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So in the very 1st example, there is this:&lt;BR /&gt;&lt;BR /&gt;arcpy.DisconnectUser("Database Connections/admin@sde.sde", "ALL")&lt;BR /&gt;&lt;BR /&gt;I don't have ArcGIS 10.1 installed yet so cannot test it...but if it works, this is much better than the 'disconnection procedure' I have used before.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...you may want to test for who/what is connected first, with:&lt;BR /&gt;&lt;BR /&gt;ListUsers (arcpy)&lt;BR /&gt;Desktop » Geoprocessing » ArcPy » ArcPy functionshttp://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000030000000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ahh, but there is a catch, probably a design feature 'failsafe' not to accidentally disconnect the admin user - from the webhelp:&lt;BR /&gt;&lt;BR /&gt;"Note:&amp;nbsp; DisconnectUser will not disconnect the user who is executing the function."&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Whitley for the answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the python but sounds not to work (below)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]21107[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What might be the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2013 05:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676136#M38298</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-01-27T05:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676137#M38299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your mistake is with the pathname string - you are mixing conventions.&amp;nbsp; I prefer to stick with passing 'raw' strings so that I do not generally have to concern myself further with backslashes being interpreted by python as an escape sequence (the preceding 'r' means interpret as 'raw' string) -- see the below where I am testing the strings via IDLE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;gt;&amp;gt;&amp;gt; # the pathname as you have stated it:
&amp;gt;&amp;gt;&amp;gt; pathname = "r'Database Connections\Sa_D1.sde'"

&amp;gt;&amp;gt;&amp;gt; # this is incorrect, directly converting all inside the double-quotes to string:
&amp;gt;&amp;gt;&amp;gt; print pathname
r'Database Connections\Sa_D1.sde'

&amp;gt;&amp;gt;&amp;gt; # removing the double-quotes:
&amp;gt;&amp;gt;&amp;gt; pathname = r'Database Connections\Sa_D1.sde'

&amp;gt;&amp;gt;&amp;gt; # this is correct, with 'r' serving in Python to use raw string:
&amp;gt;&amp;gt;&amp;gt; print pathname
Database Connections\Sa_D1.sde


&amp;gt;&amp;gt;&amp;gt; # quick example of raw versus non-raw interpretation:

&amp;gt;&amp;gt;&amp;gt; # this is without the preceding 'r':
&amp;gt;&amp;gt;&amp;gt; nonRawExample = '\tAtest'

&amp;gt;&amp;gt;&amp;gt; # this string is actually interpreted to include a tab:
&amp;gt;&amp;gt;&amp;gt; print nonRawExample
 Atest

&amp;gt;&amp;gt;&amp;gt; # this string includes the preceding 'r' for the raw representation:
&amp;gt;&amp;gt;&amp;gt; useRawExample = r'\tAtest'

&amp;gt;&amp;gt;&amp;gt; # as desired, the string is interpreted as is, or 'raw', to include the backslash character:
&amp;gt;&amp;gt;&amp;gt; print useRawExample
\tAtest
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, this is a matter of preference, but I prefer whenever possible to pass variables, not strings, to my tool, as in this example, particularly when there are a number of params to feed in - such as the 11 params for ReconcileVersions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# the ReconcileVersions pathname strings
inputDB = r'\\YourServerUNC\folderMaybeThisContainsType\SDEfiles\admins.sde'
logFile = r'C:\temp\reconcilelog.txt'

# other ReconcileVersions defined params
all = 'ALL_VERSIONS'
target = 'sde.DEFAULT'
versionList = arcpy.ListVersions(inputDB)
lock = 'LOCK_ACQUIRED'
abort = 'NO_ABORT'
conflict = 'BY_OBJECT'
resolve = 'FAVOR_TARGET_VERSION'
post = 'POST'
deleteVer = 'DELETE_VERSION'

# Execute the ReconcileVersions tool.
arcpy.ReconcileVersions_management(inputDB, all, target, versionList, lock, abort, conflict, resolve, post, deleteVer, logFile)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps - I think it makes the code a little more readable and accessible for troubleshooting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676137#M38299</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2021-12-12T04:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676138#M38300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Your mistake is with the pathname string - you are mixing conventions.&amp;nbsp; I prefer to stick with passing 'raw' strings so that I do not generally have to concern myself further with backslashes being interpreted by python as an escape sequence (the preceding 'r' means interpret as 'raw' string) -- see the below where I am testing the strings via IDLE:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;gt;&amp;gt;&amp;gt; # the pathname as you have stated it:
&amp;gt;&amp;gt;&amp;gt; pathname = "r'Database Connections\Sa_D1.sde'"

&amp;gt;&amp;gt;&amp;gt; # this is incorrect, directly converting all inside the double-quotes to string:
&amp;gt;&amp;gt;&amp;gt; print pathname
r'Database Connections\Sa_D1.sde'

&amp;gt;&amp;gt;&amp;gt; # removing the double-quotes:
&amp;gt;&amp;gt;&amp;gt; pathname = r'Database Connections\Sa_D1.sde'

&amp;gt;&amp;gt;&amp;gt; # this is correct, with 'r' serving in Python to use raw string:
&amp;gt;&amp;gt;&amp;gt; print pathname
Database Connections\Sa_D1.sde


&amp;gt;&amp;gt;&amp;gt; # quick example of raw versus non-raw interpretation:

&amp;gt;&amp;gt;&amp;gt; # this is without the preceding 'r':
&amp;gt;&amp;gt;&amp;gt; nonRawExample = '\tAtest'

&amp;gt;&amp;gt;&amp;gt; # this string is actually interpreted to include a tab:
&amp;gt;&amp;gt;&amp;gt; print nonRawExample
 Atest

&amp;gt;&amp;gt;&amp;gt; # this string includes the preceding 'r' for the raw representation:
&amp;gt;&amp;gt;&amp;gt; useRawExample = r'\tAtest'

&amp;gt;&amp;gt;&amp;gt; # as desired, the string is interpreted as is, or 'raw', to include the backslash character:
&amp;gt;&amp;gt;&amp;gt; print useRawExample
\tAtest
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Additionally, this is a matter of preference, but I prefer whenever possible to pass variables, not strings, to my tool, as in this example, particularly when there are a number of params to feed in - such as the 11 params for ReconcileVersions:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# the ReconcileVersions pathname strings
inputDB = r'\\YourServerUNC\folderMaybeThisContainsType\SDEfiles\admins.sde'
logFile = r'C:\temp\reconcilelog.txt'

# other ReconcileVersions defined params
all = 'ALL_VERSIONS'
target = 'sde.DEFAULT'
versionList = arcpy.ListVersions(inputDB)
lock = 'LOCK_ACQUIRED'
abort = 'NO_ABORT'
conflict = 'BY_OBJECT'
resolve = 'FAVOR_TARGET_VERSION'
post = 'POST'
deleteVer = 'DELETE_VERSION'

# Execute the ReconcileVersions tool.
arcpy.ReconcileVersions_management(inputDB, all, target, versionList, lock, abort, conflict, resolve, post, deleteVer, logFile)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps - I think it makes the code a little more readable and accessible for troubleshooting.&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Wayne&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Whitley for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be highly appreciated if you attach this great python script in a custom tool in a custom toolbox. This would be much easier for the end users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]21111[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676138#M38300</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2021-12-12T04:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676139#M38301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You were before having problems establishing your admin sde connection via Python - I don't know if it was clear but (provided the sde connection files contain valid parameters at the Database Connections shortcut set up in ArcGIS [I think the default location is in the app directory]) you can use the line of code below, if this is the valid admin connection you desire setting up for the reconcile/post process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = r'Database Connections\Sa_D1.sde'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I mentioned using UNC pathname conventions -- what I mean by that is I prefer not to use the 'Database Connections' shortcut, because for one what if the default setting for the shortcut path is overridden?...then where is your script supposed to go look for it?&amp;nbsp; If such things change, then you have to remember to also move the appropriate sde connection files to the new location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, as a result of this reasoning (and this particularly applies to running scripts from the server and any specialized scripts you want to provide a 'more private' or secure location to use, accessing the file-contained connection parameters), it is convenient to store scripts and any associated sde files, etc. needed to run it on the server --- for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = r'\\yourServerName\aMoreSecureLocation\aCopyOf\Sa_D1.sde'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can even copy your sde file there if that is the convenience you want - and in that way you have secured a file for particular use by your server scripts...it is true if you do this you will have to maintain them separately, but how often do you have to change admin connection files?&amp;nbsp; It certainly doesn't make sense to store the files on your desktop for the server to 'reach across the network' for the necessary params in order to do its assigned admin task on the server!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just thought I'd pass that along.&amp;nbsp; Hope it is going well -- the 'batch' workflow (Using Python scripting to batch reconcile and post versions) listed at the 10.1 webhelp is extremely interesting....so if you will post back here to confirm you got it going, that would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2013 17:29:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676139#M38301</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-27T17:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676140#M38302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You were before having problems establishing your admin sde connection via Python - I don't know if it was clear but (provided the sde connection files contain valid parameters at the Database Connections shortcut set up in ArcGIS [I think the default location is in the app directory]) you can use the line of code below, if this is the valid admin connection you desire setting up for the reconcile/post process:&lt;BR /&gt;&lt;BR /&gt;arcpy.env.workspace = r'Database Connections\Sa_D1.sde'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I mentioned using UNC pathname conventions -- what I mean by that is I prefer not to use the 'Database Connections' shortcut, because for one what if the default setting for the shortcut path is overridden?...then where is your script supposed to go look for it?&amp;nbsp; If such things change, then you have to remember to also move the appropriate sde connection files to the new location.&lt;BR /&gt;&lt;BR /&gt;Therefore, as a result of this reasoning (and this particularly applies to running scripts from the server and any specialized scripts you want to provide a 'more private' or secure location to use, accessing the file-contained connection parameters), it is convenient to store scripts and any associated sde files, etc. needed to run it on the server --- for example:&lt;BR /&gt;&lt;BR /&gt;arcpy.env.workspace = r'\\yourServerName\aMoreSecureLocation\aCopyOf\Sa_D1.sde'&lt;BR /&gt;&lt;BR /&gt;You can even copy your sde file there if that is the convenience you want - and in that way you have secured a file for particular use by your server scripts...it is true if you do this you will have to maintain them separately, but how often do you have to change admin connection files?&amp;nbsp; It certainly doesn't make sense to store the files on your desktop for the server to 'reach across the network' for the necessary params in order to do its assigned admin task on the server!&lt;BR /&gt;&lt;BR /&gt;Just thought I'd pass that along.&amp;nbsp; Hope it is going well -- the 'batch' workflow (Using Python scripting to batch reconcile and post versions) listed at the 10.1 webhelp is extremely interesting....so if you will post back here to confirm you got it going, that would be great.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Wayne&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Wayne for the valuable feedback. Quite useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment, just I need a help to create a TOOL that can live in a TOOLBOX to run the script by only providing the connection. I have posted this challenge in the Python section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2013 19:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676140#M38302</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-01-27T19:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676141#M38303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Caveman simple:&amp;nbsp; Stop and start the service.&amp;nbsp; It's never failed me...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 15:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676141#M38303</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2013-01-28T15:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tool to �??disconnect�?� all the users at a time?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676142#M38304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Caveman simple:&amp;nbsp; Stop and start the service.&amp;nbsp; It's never failed me...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Joe for the contribution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that this should be part of the script that is used to make the Add-Delete tables with no records (empty)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 16:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-there-a-tool-to-disconnect-all-the-users-at-a/m-p/676142#M38304</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-01-28T16:52:05Z</dc:date>
    </item>
  </channel>
</rss>

