کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

به اشتراک گذاری اطلاعات کسب شده در اکسس از سایت آفیس و سایت های تخصصی خارجی
کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

به اشتراک گذاری اطلاعات کسب شده در اکسس از سایت آفیس و سایت های تخصصی خارجی

OpenSchema Method فرضا گرفتن نام جداول



SchemaEnum Constants and Constraint Columns Values 

 

ConstantValueDescriptionConstraint Columns
adSchemaAsserts0Returns the assertionsCONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
adSchemaCatalogs1Returns the catalog informationCATALOG_NAME
adSchemaCharacterSets2Returns the defined character set in the catalogCHARACTER_SET_CATALOG
CHARACTER_SET_SCHEMA
CHARACTER_SET_NAME
adSchemaCheckConstraints5Returns the defined check constraints in the catalogCONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
adSchemaCollations3Returns the defined character collations in the catalogCOLLATION_CATALOG
COLLATION_SCHEMA
COLLATION_NAME
adSchemaColumnDomainUsage11Returns the columns that are domain dependentDOMAIN_CATALOG
DOMAIN_SCHEMA
DOMAIN_NAME
COLUMN_NAME
adSchemaColumnPrivileges13Returns the column privilege informationTABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
COLUMN_NAME
GRANTOR
GRANTEE
adSchemaColumns4Returns the columns informationTABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
COLUMN_NAME
adSchemaConstraintColumnUsage6Returns the columns used by constraintsCOLUMN_NAME
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
adSchemaConstraintTableUsage7Returns the tables used by constraintsTABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
adSchemaCubes32Returns info about the cubes used for multi-dimensional dataCATALOG_NAME
SCHEMA_NAME
CUBE_NAME
adSchemaDBInfoKeywords30Return the keywords recognized by the providernone
adSchemaDBInfoLiterals31Return the literals used in text commands by the providernone
adSchemaDimensions33Returns info about the dimensions in a cubeCATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_NAME
DIMENSION_UNIQUE_NAME
adSchemaForeignKeys27Returns the foreign key columnPK_TABLE_CATALOG
PK_TABLE_SCHEMA
PK_TABLE_NAME
FK_TABLE_CATALOG
FK_TABLE_SCHEMA
FK_TABLE_NAME
adSchemaHierarchies34Returns hierarchy info for multi-dimensional dataCATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_UNIQUE_NAME
HIERARCHY_NAME
HIERARCHY_UNIQUE_NAME
adSchemaIndexes12Returns the indexes defined in a catalogTABLE_CATALOG
TABLE_SCHEMA
INDEX_NAME
TYPE
TABLE_NAME
adSchemaKeyColumnUsage8Returns the defined key columns in the catalogCOLUMN_NAME
CONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
adSchemaLevels35Returns info about the levels in multi-dimensional dataCATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_UNIQUE_NAME
HIERARCHY_UNIQUE_NAME
LEVEL_NAME
LEVEL_UNIQUE_NAME
adSchemaMeasures36Returns the measures for multi-dimensional dataCATALOG_NAME
SCHEMA_NAME
CUBE_NAME
MEASURE_NAME
MEASURE_UNIQUE_NAME
adSchemaMembers38Returns the available members for multi-dimensional dataCATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_UNIQUE_NAME
HIERARCHY_UNIQUE_NAME
LEVEL_UNIQUE_NAME
LEVEL_NUMBER
MEMBER_NAME
MEMBER_UNIQUE_NAME
MEMBER_CAPTION
MEMBER_TYPE
TREE OPERATOR
adSchemaPrimaryKeys28Returns the primary key columnsPK_TABLE_CATALOG
PK_TABLE_SCHEMA
PK_TABLE_NAME
adSchemaProcedureColumns29Returns info on columns returned by stored proceduresPROCEDURE_CATALOG
PROCEDURE_SCHEMA
PROCEDURE_NAME
COLUMN_NAME
adSchemaProcedureParameters26Returns info on the parameters and return codes of stored proceduresPROCEDURE_CATALOG
PROCEDURE_SCHEMA
PROCEDURE_NAME
PARAMETER_NAME
adSchemaProcedures16Returns info on the stored proceduresPROCEDURE_CATALOG
PROCEDURE_SCHEMA
PROCEDURE_NAME
PROCEDURE_TYPE
adSchemaProperties37Returns info on the properties of each level of multi-dimensional dataCATALOG_NAME
SCHEMA_NAME
CUBE_NAME
DIMENSION_UNIQUE_NAME
HIERARCHY_UNIQUE_NAME
LEVEL_UNIQUE_NAME
MEMBER_UNIQUE_NAME
PROPERTY_TYPE
PROPERTY_NAME
adSchemaProviderSpecific-1For provider-specific, non-standard schemaprovider specfic
adSchemaProviderTypes22Returns the provider-supported data typesDATA_TYPE
BEST_MATCH
adSchemaReferentialConstraints9Returns the defined referential constraints in the catalogCONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
adSchemaSchemata17Returns the schema owned by a userCATALOG_NAME
SCHEMA_NAME
SCHEMA_OWNER
adSchemaSQLLanguages18Returns the SQL language support infonone
adSchemaStatistics19Returns the defined statistics in a catalogTABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
adSchemaTableConstraints10Returns the table contraints defined in the catalogCONSTRAINT_CATALOG
CONSTRAINT_SCHEMA
CONSTRAINT_NAME
TABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
CONSTRAINT_TYPE
adSchemaTablePrivileges14Returns the privileges on tablesTABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
GRANTOR
GRANTEE
adSchemaTables20Returns the tables in a catalogTABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
TABLE_TYPE
adSchemaTranslations21Returns the character set translation infoTRANSLATION_CATALOG
TRANSLATION_SCHEMA
TRANSLATION_NAME
adSchemaTrustees39Not usednone
adSchemaUsagePrivileges15Returns the user privilege infoOBJECT_CATALOG
OBJECT_SCHEMA
OBJECT_NAME
OBJECT_TYPE
GRANTOR
GRANTEE
adSchemaViewColumnUsage24Returns the column usage for viewed tablesVIEW_CATALOG
VIEW_SCHEMA
VIEW_NAME
adSchemaViews23Returns the views info from the catalogTABLE_CATALOG
TABLE_SCHEMA
TABLE_NAME
adSchemaViewTableUsage25Returns the table usage for viewed tablesVIEW_CATALOG
VIEW_SCHEMA
VIEW_NAME



(Set X= Conn.OpenSchema(adSchemaTables

For i=0 To X.Count-1

Msgbox X(i).Name

Next

که   Constraint Columns در جدول بالا را برای adSchemaTables لیست میکند و میشود 

TABLE_CATALOG                                                                           
TABLE_SCHEMA
TABLE_NAME
TABLE_TYPE




    (("",OpenSchema(adSchemaColumns,Array("","","MyTable