ADO CursorLocation and SalesLogix

I see the question arise often about CursorLocation with Recordsets in SalesLogix. This question comes up even more now with SalesLogix 6.2 as neglecting to set CursorLocation can have have more noticable results.

Any data access using the SalesLogix OLEDB Provider must use a client-side cursor. Server side cursors are not supported. In SalesLogix 6.2 you will not even be able to access data without specifying a client side cursor. Previous versions would let you get away with omitting the CursorLocation (ie: defaulting to serverside) and retrieve data, although you would receive an error when updating without a client-side cursor. In 6.2 you are no longer able to access data without specifying a client-side cursor.

With traditional ADO in a SalesLogix VBScript, you must use the following:

objRS.CursorLocation = adUseClient

Even if you’re not yet on version 6.2 you should be using a client-side cursor anyway. The provider is not built to handle server-side cursors, and you’re code will break when you move it to 6.2.

ABOUT THE AUTHOR

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

1 Comment

  1. Thanks for saving my butt. You taught me on slxdeveloper.com how to use updatable recordsets and this was one of the requirements of using that.

    Does the provider default to client side now? Or do we have to explictely call this. My guess would be no, that it ADO recordsets default to server side and they can’t be altered. The alternative is to explicitely call this every time you want to access data, whether its a read or a write. I relied on defaults to let me read data not expecting I would have to change those eventually but I suppose it’s inevitable and should be changed anyways.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!