Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS troubles 4 50
Need help making a program or form for inventory that exports to txt 8 41
Store results in vb.net 3 20
Sort GridView by ID Descending 1 12
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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

770 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