Solved

How do I connect with Simply Accounting Pro 2010 database from C#?

Posted on 2010-08-24
2
813 Views
Last Modified: 2013-12-17
Hi ,
We need to connect with Simply Accounting Pro 2010 database (even if it is sample database) from .Net (C#).
We want to get table list and other stuff that is less important now, without ability to connect with db (first).

We are in a very critical time and fast solution will be very welcomed.

Best regards
0
Comment
Question by:appdec
[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
  • 2
2 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 33508730
What database is simply accouting pro 2010 using ? Is it mysql, sqlserver, ...
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 33508738
Probably you can find an sdk in the following folder: The SDK contains a sample with many examples. Look under c:\program files\Simply accounting 2010 SDK\sample

If it's a sage database, try this:
For those of you who are trying to create a link from a .NET application to Sage. Here's how I did it:

Dim con As New Odbc.OdbcConnection("Driver={Sage Line 50 v14};DIR=D:\SAGEDatabase\COMPANY.003\ACCDATA;UseDataPath=No;UID=manager;PWD=mypassword")

Dim cmd As Odbc.OdbcCommand = con.CreateCommand

cmd.CommandText = "SELECT ACCOUNT_REF FROM SALES_LEDGER WHERE ACCOUNT_REF LIKE 'SA%'"
       
Try
  con.Open()
  lbl.Text = cmd.ExecuteScalar
Catch ex As Exception
  lbl.Text = ex.Message
  Exit Sub
Finally
  con.Close()
End Try
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 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