Python Script Set Dataset permission Error

2109
2
03-19-2013 10:48 AM
ZhanGao
New Contributor
I try to run Python scrip(10.1) to set network dataset permission but get error.does anyone know why?

here is the Python code:arcpy.ChangePrivileges_management(targetDBConn +"Transportation",
"GISVEC1_APP_RL", "GRANT", "GRANT")

Here is the error message:ERROR 999999: Error executing function.
Underlying DBMS error [Microsoft SQL Server Native Client 10.0: Incorrect syntax near '-'.]
Failed to execute (ChangePrivileges).

Thanks.
0 Kudos
2 Replies
DuncanHornby
MVP Notable Contributor
I'm guessing that you need a forward slash between your database path and the feature-class name?
0 Kudos
ZhanGao
New Contributor
I'm guessing that you need a forward slash between your database path and the feature-class name?


my targeDBConn is "D:\\DBConnections\\DEVGISStaging_gisvec1_owner.sde\\gisvec1.OC." + "Transportation"
0 Kudos