Solved

Sage50 and Visual Studio 2010

Posted on 2014-12-04
5
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 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