Python Script to Disconnect all users from a database

Discussion created by cookeville on May 9, 2014
Latest reply on Oct 24, 2014 by asengupta-esristaff
I am not very Python savvy...  trying to develop a script to disconnect all users from a 10.2.2 SDE database.  Can anyone tell me what I'm doing wrong?

import arcinfo

import arcpy

# Variables:
sde_TestServer = "\\\\computer\\c$\\Users\\user\\AppData\\Roaming\\ESRI\\Desktop10.2\\ArcCatalog\\sde@TestServer.sde"

#Disconnect Users
arcpy.DisconnectUser ("sde_TestServer", "ALL")