Solved

Sage50 and Visual Studio 2010

Posted on 2014-12-04
5
373 Views
Last Modified: 2014-12-11
Hi,

I've recently upgraded from simply accounting 2010 to sage50. I have an application built in visual studio that connected to my simply accounting database using .NET Framework Data Provider for ODBC.

With the new version of simply Accounting (sage50), the database has been updated. I can no longer connect to it using the .NET Framework Data Provider for ODBC, Visual Studio tests the connection successfully but then hangs when I try to retrieve data from some tables...

I'm wondering if anyone can help me out?

Thank you
0
Comment
Question by:FCapo
  • 3
  • 2
5 Comments
 
LVL 40
ID: 40481981
I haven't worked with .NET and Sage50, but they use a MySQL database. You might try with the MySQL components for .NET.
0
 

Author Comment

by:FCapo
ID: 40486954
I've tried with it,

but I normally used ODBC to connect to it but now it crashes Visual Studio everytime I try to read the database
0
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40487128
They seemed to have redesigned a lot of thing in Sage50 compared to the previous versions.

They might have buffed up the security so that you might not have access to tables that were available anymore.

They might have also changed the structure of the database, so that code that did work before does not work anymore.

That is one of the reasons I suggested that you try with the MySQL components. I have never used MySQL, but when you download their .NET components, many database developers provide Tools that integrates in Visual Studio to enable you do visualize the database structure, and even sometimes to edit or create tables and stored procédures directly in Visual Studio.
0
 

Author Comment

by:FCapo
ID: 40487200
I'm getting this error which crashes visual studio 2010 when I try to retrieve records from a table in the server explorer:

Faulting application name: devenv.exe, version: 10.0.30319.1, time stamp: 0x4ba1fab3
Faulting module name: myodbc5a.dll, version: 5.2.4.0, time stamp: 0x510186c8
Exception code: 0xc0000005
Fault offset: 0x000102aa
Faulting process id: 0x1dc0
Faulting application start time: 0x01d0130d07a194cf
Faulting application path: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Faulting module path: C:\Program Files\MySQL\Connector ODBC 5.2\ANSI\myodbc5a.dll
Report Id: 73bb31cf-7f00-11e4-a04e-842b2b928812
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40487297
On my system, from what I see in the Control Panel, Sage 50 (Pro 2013 Update 4) seems to use MySQL Connector/ODBC 3.51. You seem to use version 5.2. It might not be compatble.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now