Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

Posted on by 2,845

I am getting the status as 916 when I am running this this dexterity code. Anyone know, what is 916? 

*This post is locked for comments

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

    I am glad , I was helpful. Now please verify my answer so I get some points .     :*O)

  • Manikandan Profile Picture
    Manikandan 2,845 on at
    RE: Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

    Thank you so much Almaz.

    It is a cross DB query and that user not have access to that DB. Your suggestion gave me a key to to verify this. Thanks again.

  • Verified answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

    this comes when there is some permission issue. Check if your user have permission to the  tables , views you are accessing in your sql statement.

    Definitely there is something different for user to user that's why you are getting error, and that's why I wanted to see your sql statement.

  • Manikandan Profile Picture
    Manikandan 2,845 on at
    RE: Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

    Almos,

    It is working fine for another user. I only need what is the meaning if status is 916.  If you know the please share.

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

    There is no SQL_connection and SQL_Statements code please share complete code.

  • Manikandan Profile Picture
    Manikandan 2,845 on at
    RE: Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

    Also, I am getting this error only for specific user. For others it is working properly. I have verified the role of them. both are same. Little confusing...

  • Manikandan Profile Picture
    Manikandan 2,845 on at
    RE: Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

    SQL_Statements = "USE " + 'Intercompany ID' of globals;

    status = SQL_Execute(SQL_connection, SQL_Statements);

    if status = 0 then

       SQL_Statements = I_tQuery;

       {Execute the SQL statements.}

       status = SQL_Execute(SQL_connection, SQL_Statements);

       if status = 0 and I_iMode = 1 then

           {Retrieve data from the first results set.}

           status = SQL_FetchNext(SQL_connection);

           if status <> 31 then

    status = SQL_GetData(SQL_connection, Opt_I_iColumn, l_sResult);

    Opt_O_sResult = l_sResult;

           else

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Dexterity status = SQL_Execute(SQL_connection, SQL_Statements); is returning 916.

    share your code.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans