Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy
- arcpy.CreateDatabaseConnection_management(out_folder_path='C:UsersxxxDesktopGIS_Testing', out_name='HBM.sde', database_platform='SQL_SERVER',
- instance='myServerName', account_authentication='DATABASE_AUTH', username='HBMWriter', password='xxx',
- save_user_pass='SAVE_USERNAME', database='HBMTest')
- arcpy.env.workspace = r'C:UsersxxxDesktopGIS_TestingHBMTest.sde'
- featClasses = arcpy.ListFeatureClasses()
- for fc in featClasses:
- print fc
Add Comment
Please, Sign In to add comment