I want to get table metadata for all table columns. Like type string(varchar2)/int/float/datetime and length for strings etc.
Cheers! -Matti
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For all tables that you can access :
For all tables in the current schema :
This is specific to Oracle, but there is a more generic way to retrieve schema information : the
DbConnection.GetSchemamethod :The resulting table contains all available column information that matches the criteria.
For a list of all available schema metadata, you can call
GetSchemawithDbMetaDataCollectionNames.MetaDataCollectionsas a parameter.