Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Reg : Import DB Scripts

Posted on by 50

How to invoke new stored procedures created against Dynamics SL Database in Production Server

*This post is locked for comments

  • Verified answer
    IbrahimSO Profile Picture
    IbrahimSO 50 on at
    RE: Reg : Import DB Scripts

    Thanks for your support.

    I done some customization changes and also added some stored procedure's in SQL Dynamics SL Database.I Invoke customization from .cst file like that is it possible to invoke custom stored procedure's from Dynamics SL Screen.

  • Verified answer
    Erich Strelow F Profile Picture
    Erich Strelow F 1,642 on at
    RE: Reg : Import DB Scripts

    Can you be more specific?

    You mean invoke the sp from within SL or from an external tool?

    Some recommendations:

    1. On adding objects to the database, always execute the "Synchronize All Ownership & Security". Locate the 9829000.exe, connect to your DB server and execute this step. Otherwise, you may get access problems on the sp from within SL.
    2. You can invoke a non-table sp from a VBA customization within SL using Call sql(c, "exec mysp " & IParm(myNumber) & "," & SParm(myText) ). No option for return parameters is available.
    3. A table sp may be queried from VBA using the sqlfetch function calls, but you must provide a record definition (the so called DH file) serr1 = sqlfetch1(c1, "mysp " + sparm(myText), bmysp, LenB(bmysp)).
    4. If invoking from an external tool (like Excel, Infopath, any BI thing), there are certain security tweaks involved.


     

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans