public enum EnterpriseDatabaseType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum EnterpriseDatabaseType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum EnterpriseDatabaseType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum EnterpriseDatabaseType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
DB2 | DB2 database. |
Hana | Hana database. |
Informix | Informix database. |
Netezza | Netezza database. |
Oracle | Oracle database. |
PostgreSQL | PostgreSQL database. |
SQLite | SQLite database. |
SQLServer | SQLServer database. |
Teradata | Teradata database. |
Unknown | Unknown database. |
public async Task DefaultQueryDescription() { await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() => { DatabaseConnectionProperties databaseConnectionProperties = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLServer) { AuthenticationMode = AuthenticationMode.DBMS, Instance = "instance", Database = "database", User = "user", Password = "password" }; using (Database database = new Database(databaseConnectionProperties)) { QueryDescription queryDescription = database.GetQueryDescription("CUSTOMERS"); using (Table table = database.OpenTable(queryDescription)) { //use table } } }); }
public async Task CustomQueryDescription() { await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() => { DatabaseConnectionProperties databaseConnectionProperties = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLServer) { AuthenticationMode = AuthenticationMode.DBMS, Instance = "instance", Database = "database", User = "user", Password = "password" }; using (Database database = new Database(databaseConnectionProperties)) { QueryDescription queryDescription = database.GetQueryDescription("SELECT OBJECTID, Shape, FACILITYID FROM EmergencyFacility WHERE JURISDICT = 'Municipal'", "MunicipalEmergencyFacilities"); using (Table table = database.OpenTable(queryDescription)) { // Use the table. } } }); }
System.Object
System.ValueType
System.Enum
ArcGIS.Core.Data.EnterpriseDatabaseType
Target Platforms: Windows 11, Windows 10