Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: OLEDB from SLAPI
Wayne Ravenscroft
Posts: 2
 
OLEDB from SLAPIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Feb 07 9:14 AM
fiogf49gjkf0d
Hi,

I'm both very new to Saleslogix and slxdeveloper.com and am almost bald now after inheriting our 5 year old VB code.

Just to explain, 2 weeks ago we upgraded from SLX 5.2 (I think) to 6.2, which we are still having fun with. However the problem I am experiencing involves a VB6 program, which is basically meant to create an account "without" using any of the SLX screens, or at the very least setting a a client account to active (that might be something we have internally though).

Now in the past this has used the slapi_logInto function just to get the connection, since the upgrade this no longer works, so as a first question, I know I need to move it to OLEDB, but how should I do this as any reference material is very thin on the ground and the material I have found seems to indicate that this should still work, I have spoken to the DBA and the Alias is set up and running fine. In addition to this I downloaded the SLX SDK V6 sample which also uses this function AND produces the same error return as the VB I have inherited.

Both return error 31, which when put through the errortext function returns a rather descriptive "0: 31"!!

Any help would be most appreciated.
Thanks
Wayne
[Reply][Quote]
Carla Tillman
Posts: 290
 
Re: OLEDB from SLAPIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Feb 07 7:10 AM
fiogf49gjkf0d
Hi Wayne,

Try some of the excellent articles posted here at slxdeveloper.com. I think this set will give you the needed information.

http://www.slxdeveloper.com/page.aspx?id=15
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: OLEDB from SLAPIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Feb 07 9:57 AM
fiogf49gjkf0d
SLAPI should still work with v6.2, although it sucks You'd need to change the code so it uses an OLEDB alias (as configured on the login screen on the client) instead of a BDE alias.

Rewriting it to use the SLX OLEDB provider would be the way to go. As Carla pointed out there's some articles on this site that should give some basics, however you're just writing to the database just as you would with any OLEDB provider. It is just standard ADO, no wierd calls to things like slapi_DBSetValue etc. The only really SLX specific thing is the connection string so it will use the SLX OLEDB provider.
[Reply][Quote]
Wayne Ravenscroft
Posts: 2
 
Re: OLEDB from SLAPIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Feb 07 10:13 AM
fiogf49gjkf0d
Hi again,

Thanks for the replys, I believe we are using the Alias from the login screen which is, probably a bit unoriginal, "SALESLOGIX", our suppliers are also saying it should work, however we still get this mysterious error 31 returned from the loginto attempt, the suppliers also mention something about the ADOAlias.ini file, but from my investigations in the reference guides this is an alternative to using the Alias in the Data Link Manager.

We did have trouble with permissions after the upgrade initially, so I am wondering if this is another knock on from the security changes and nothing to do with the program at all!!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: OLEDB from SLAPIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Feb 07 10:34 AM
fiogf49gjkf0d
The error 31 is an ambiguous error that can mean many things. The most common place you'll see that is when using the SLAPI from a service context (windows service, web application, etc). It just isn't meant to do that and is very picky on permissions etc.

Could this be your scenario?

If so, I'd not every try to get it working again and would just bite the bullet and rewrite to use OLEDB.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/26/2024 11:13:33 AM