web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

SqlReadOnly flag?

(0) ShareShare
ReportReport
Posted on by 38

Hi

I please need some help with an error that I am receiving in my custom developed Dynamics screen.
Upon trying to save die values in my grid I get an error saying Cursor specified SqlReadOnly flag. (Please see image)

I use the following sub to ave the data to my table

Private Sub InsertEmployeeDetails()

Dim strSQL As String
Dim strSQL1 As String
Dim csr_Insert As Short

'Open buffer for table
strSQL = "Select * from xPJEMPLOY"
serr = SqlFetch1(csr_Insert, strSQL, bxPJEMPLOY)

'' ** set values
With bxPJEMPLOY
.EmpID = bxPJEMPLOY.EmpID 'new asset
.EmpName = EmpName.CtlText
.EmpStatus = EmpStatus.CtlText
.EmpDescr = bxPJEMPLOY.EmpDescr
End With

'Insert records
Call SInsert1(csr_Insert, "xPJEMPLOY", bxPJEMPLOY)


Call SqlFree(CSR_xPJEmploy)

End Sub

Can someone please help me in the right direction to get the data saved?

System-Message-10091.png

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Lee

    What version of SL are you on? There is a hotfix for this issue for SL 7 SP 3.

    Good luck,

    Chuck Otis

    Winxnet

  • LeeRoy Profile Picture
    38 on at

    Hi Chuck

    I am on SL 2011 FP11 - Professional

  • Community Member Profile Picture
    on at

    Hi Lee

    Per Microsoft, this issue was corrected in SL 2011 FP1.

    See link below.

    support.microsoft.com/.../system-message-10091-cursor-specified-sqlreadonly-flag-occurs-when-you

    Please let me know if you have any other questions.

    Chuck Otis

    Accounting Solutions

    Winxnet

    www.winxnet.com

  • Suggested answer
    Mark E Profile Picture
    6,451 on at

    Review the attached thread.  Make sure you have properly defined your cursor in the Form_Load event.

    community.dynamics.com/.../111595

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans