Developer technologies | Visual Studio | Extensions
Add-on components that enhance and customize the Visual Studio integrated development environment
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm developing a Visual Studio plugin that uses the database connection provided by Visual Studio to retrieve Oracle metadata. However, when the metadata is of type Long (ALL_TAB_COLS.DATA_DEFAULT), the data cannot be retrieved in Visual Studio (it's an empty string).
I tried:
To retrieve Oracle LONG type data using the ODP.NET driver in Visual Studio, you can follow these steps:
InitialLONGFetchSize = -1. This is a correct approach as it allows the driver to fetch the entire LONG data when retrieving it.OracleDataReader, you can retrieve LONG data by calling GetOracleString or GetOracleBinary methods, depending on the type of LONG data you are dealing with.IVsDataConnection, you may need to check if there is a way to configure the connection string or properties to include the InitialLONGFetchSize. This might not be directly exposed through IVsDataConnection, so you may need to look into the underlying connection string or configuration options available in ODP.NET.If you continue to face issues, consider checking the Oracle documentation for any specific configurations or limitations regarding LONG data types and ODP.NET.
References: