What would be best way to change datatype given slow Oracle Linked Server situation

  • Working: Oracle Linked Server - however due to the extremely slow VPN, it took a couple of minutes for each table (or select) to respond.

    Working: Stored Procedures - Each early morning (and over lunch) the Oracle Linked Server tables MakeTable for local SQL Server Tables

    SP example: SELECT * INTO [NV_SIDETRACK] FROM [PNAV2.RESOURCES.COM]..[NAV_DBA].[NV_SIDETRACK]

    Use: MS Access uses DSNLess Linked Tables to SQL Server tables for application use.

    Problem: All of the Oracle Linked Tables for MakeTable end up converting numeric type to MEMO

    For example: the Primary Key (1234567) on the SQL Server table is a data type memo

    Lets take into account, the VPN is very slow and I am a newbie.

    Question: How should I proceed and can you offer some hints for coding?

    1. the data types be converted during the Make Table from the Oracle Linked Server?

    2. the data types be converted in some kind of a View? (Access can link to a view, it is all read-only anyway).

    3. a SP update the memo fields to numeric in the same SQL table (in place).

    4. A SP take the SQL table, make a new table and convert it in the process.

    My SQL Server is dedicated and has huge resources.

  • Am I on the right track?

    Started designing a View (MS Access can link to a view). The Oracle data is Read-Only.

    The Oracle data residing in SQL Server will be where the View is run from.

    Tried this and it looks promising:

    SELECT TOP 1000 (CAST( [Audit_ID] as varchar(5) ) ) as Audit_ID

    ,[TAXPAYER_NAME]

    ,[DIVISION_ID]

    ,[STATE_ABBRV]

    ,[STATE_NAME]

    ,[COUNTY_NAME]

    My reading indicates that CAST can only be used on fields with no Nulls or no Non-Numeric values.

    A PK is a good candidate for CAST

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply