Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Heterogeneous queries

Posted on by 1,500

Hi Guys

I have created Encrypted Audit Trail Application I have company database ,ABC and created another database with name ABC_Audit. In ABC_Audit, I have audit table where records are save in encrypted form. In company database , I have created one procedure to fetch these records from Audit table and apply decrypt key. This procedure is called from View (View doesn't support decrypt key that's why procedure is created and called from View).  Both databases are in same SQL Server or Instance. No linked server is involved. SQL version is  2012 and GP version is 2015.

Now I am creating smartlist and getting this error. Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection.

I have set options at database level but no luck. View is not supporting this option to be set. In stored procedure, these options are already set. Any idea , how can this issue be overcome.

*This post is locked for comments

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Heterogeneous queries

    Replace view with sql table, insert /delete data in your table from view and use it in your stored procedure.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans