Please help!
I am attempting to extract data from a Sage Line 50 database ( .dta
extention) via an ODBC connection. Included in the application
install of Sage Line 50, is an ODBC driver.
I have successfully managed to extract data from other SQL databases
using ODBC connections with no errors.
The php code I am using is:
<?php
$db_user = "aUser";
$db_pass = "aPassword" ;
$dsn = "SageLine50v10" ;
$sage_conn = odbc_connect($d sn, $db_user, $db_pass);
?>
And the result is this:
Warning: odbc_connect() [function.odbc-connect]: SQL error: Cannot
find all files in data path, SQL state 08001 in SQLConnect in C:
\Inetpub\wwwroo t\sage.php on line 70
[Line 70 - $sage_conn = odbc_connect($d sn, $db_user, $db_pass);]
The response I received after contacting Sage is as follows:
"This message appears when using the ODBC driver from Sage Line 50
when the ODBC set up is incorrect. To correct this you need to change
the data path you have setup to the correct ACCDATA subdirectory."
The directory "ACCDATA" is where the .dta files are kept. Assuming
that ACCDATA means Accounts Data - there are a number of .dta files
with file names that relate to the table names used within the Sage
Application.
The table I wish to extract data from is called "Header", with a
related file name of "Header.dta " within the "ACCDATA" directory.
To test that the ODBC connection is working correctly, I have managed
to extract data from this table using MS Excel, FileMaker and Alpha
Five.
Can somebody please help, or point me in the direction of some sample
coding?
Regards,
Marc Holt. 0 6374 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: eSc |
last post by:
I am trying to connect to Sage Line 50 data files through odbc
driver (SageLine50v8) from php5 (running on windows xp pro) by
odbc_connect().
Unfortunately I can not find right connection string and I get back an
error:
"SQL error: Cannot find all files in data path, SQL state 08001 in
SQLConnect"
This is what I am trying to do now:
$connection_string="SageLine50v8";
|
by: Frank Murren |
last post by:
I have created a ODBC link with SAGE Line100 and a standard Access 2002
dbase.
I have created a table (and then a query based directly on that table) using
fields from the external data.This data is continuously updated during the
day.
When I run the query, the records are obtained but are then non-updatable.
I want to add a single additional piece of information (from a lookup table
I have created in my database) to each record imported...
|
by: Paul |
last post by:
Hello,
I am converting an Access database on our network to a sql 2000
backend and keeping access as the front end. The access database has
evolved and been a solution to collect data but now we want to move
the tables over to sql 2000. We have successfully done that but are
now having difficulties with an ODBC connection. Initiall linking the
tables is not an issue and I am able to connect with no problem.
However after closing down...
|
by: cheungs7 |
last post by:
Hi all,
Wondering whether you can anyone help me. We have Sage Payroll (and
accounting/payroll software), which has a MS Access database where the data
is stored.
Now I want to access the data in this database but whenever I do (without
using the Sage payroll client application) I get a permission problem. Now
I have the correct username and password, and I tried importing it in a new
Access database, but with no luck. Maybe I'm...
|
by: kj |
last post by:
Hi people,
newcommer here, i know a little ms programming but am new to sage,
Is it possible to connect to sage line 50 with ms access?
TIA
Keith
| |
by: Rshah |
last post by:
Anybody know syntax of sage line 50 query?
how can I write sage line50 database conidtion sql query?
when i write this syntax, get error msg of column not found.
'SELECT c.stock_cat_name, a.stock_code, c.description, a.date,
IIF(MID(a.type,2,1)="I",SUM(a.quantity),0) AS iqty,
IIF(MID(a.type,2,1)="O",SUM(a.quantity),0) AS oqty
FROM stock_tran AS a LEFT JOIN stock AS c ON c.stock_code=a.stock_code
WHERE a.date>= And a.date<=
|
by: Gurdeep Toor via AccessMonster.com |
last post by:
Hi Folks,
I am building an application in VB.NET... It connects to 2 databases MS SQL
SERVER 2005 and MS ACCESS 2003 .. It works all fine with SQL but It only
reads the record from the ACCESS table which is linked with SAGE ACCOUNTING
SOFTWARE V 11... Now When i Update or add record to the ACCESS linked table
then i got the Error..... INVALID KEYWORD SPECIFICATION... My Code looks like.
...
'...
|
by: BodiceaOverall |
last post by:
Hello
I am trying to connect to a SAGE database from MS Access 2000 using SAGELINE 100 ODBC Driver. When I use one schema (not created by me) I get the full table names yet in another (not created by me either) I get the shortened ones. There are settings somewhere to remove the flag 'shorten table and field names'...anyone know where? As I am now at a complete loss. I have tried the ODBC connections via Settings in Windows XP but can't...
|
by: franc sutherland |
last post by:
Hi,
I am trying to build a database in Access 2003 which can connect to
information in a SAGE system. Should I use ODBC, and if so, which
driver is required? Is there another way of connecting? Which is
best?
Thanks,
Franc.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |