resumeconnections

RPLib – resumeconnections

RPLib.resumeconnections(Workspace=None)[source]

Allows an administrator to enable the ability of nonadministrative users to make connections to an enterprise geodatabase.

Parameter Type Description Required
Workspace String Path to SDE connection file. Yes

Returns: Boolean

Usage

  • Only works with enterprise geodatabases.
  • This function is used by an administrative user to unblock or allow connections to an Enterprise geodatabase.
  • If connections are blocked or paused this function will need to be used so new connections can once again be made to the geodatabase.
  • If this function is attempted to be run by a nonadministrative user the function will fail.

Example 1

Simple call with all parameters specified.

import RPLib

sdeOwner = "C:/GIS/SDEADMIN@GIS.sde"

RPLib.resumeconnections(sdeOwner)

Example 2

If Else logic with all parameters specified.

import RPLib

sdeOwner = "C:/GIS/SDEADMIN@GIS.sde"

if RPLib.resumeconnections(sdeOwner):
    print("successful, run another tool")
else:
    print("failed, run another tool")

Table Of Contents

Previous topic

pauseconnections

Next topic

killconnections

This Page