Solved

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

Posted on 2010-08-24
2
810 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Upgrading my SSIS package in VS 2012 6 83
VS 2017 18 101
Where does legacy ASP.NET initialize language? 2 54
reading excel file in .net 2 30
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
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…

679 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