Our office has multiple SDE databases on an SQL server. Each SDE database represents a County within our state and each County SDE Database has the same feature classes and attributes table parameters.
Is there an existing tool or a script that you use which will allow us to querry all of our county databases at one time for a specific attribute total or value?
Example: We want to determine the total acrage of State Forest. Each county database has a feature class called 'state_forest_area' and in that feature class is the attribute column for 'total_acres'. What we would like the tool/script to do is access each County Database and pull the total acres from each 'state_forest_area' feature class and total them. OR at the least, have an output of all the 'state_forest_area' records, then we could total them ourselves.
Is there an existing tool or a script that you use which will allow us to querry all of our county databases at one time for a specific attribute total or value?
Example: We want to determine the total acrage of State Forest. Each county database has a feature class called 'state_forest_area' and in that feature class is the attribute column for 'total_acres'. What we would like the tool/script to do is access each County Database and pull the total acres from each 'state_forest_area' feature class and total them. OR at the least, have an output of all the 'state_forest_area' records, then we could total them ourselves.
Would we be able to write a python script, or something similar, to check each database for a specific feature class or attrbute value?
I would think that this is a common query other users would use; am i wrong?
Attachments
I wonder if you could create a view on one database that references all those databases that you would like to query against?
Or perhaps the view contains the query?
You could try something like this:
Kind regards, Xander
Since it's still early in deployment, you should reconsider the multi-database model, and evaluate putting all the data in a single database, either by using multiple county users, or by making one comprehensive database and using COUNTY_CODE to restrict mapping by county. Cross-database operation will make access to the data for statewide mapping as difficult and inefficient as possible.
- V
Vince Angelo is absolutely right! (+1 for that) It is better to get things right, create a structure that is durable and enables analysis and statistics rather than start with all types of customization to get results you could obtain without customization if your schema was set up correctly. Invest now in setting up your data correctly, the ROI will be high.