webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

JDBC Adapter - MS SQL Server - Synonyms

  • 1.  JDBC Adapter - MS SQL Server - Synonyms

    Posted Tue April 23, 2013 09:41 AM

    JDBC Adapter against MS SQL server does not list synonyms when creating JDBC services or notifications.

    Is this a limitation in the MS SQL driver, I seem to remember this working for me earlier though that was an Oracle DB.

    We have a scenario where tablenames changes between environments. It’s a tool that replicates data from one db/table to another. It sufixes the original name with the source along the way. Until they can fix this we thought perhaps synonyms could solve the problem.

    e.g. hostname.schema.personTblFromTest
    e.g. hostname.schema.personTblFromProd

    Synonym in each database would be person and point to the correct table. The adapter would then reference person isntead of personTblFromX.

    Regards
    Thor I.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: JDBC Adapter - MS SQL Server - Synonyms

    Posted Wed April 24, 2013 07:14 AM

    Mssql jdbc driver doesn’t return the synonyms, but Oracle does.
    This can be verified by writing a simple code snippet outside the webMethods.

    We created a view which will have a static name and someone can maintain the “link” to the correct tablename when it changes.


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB