473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

MAS90

Has anyone over connected to a MAS90 Accounting Application?

I have the Connection working but I cannot seem to get the query
correct.

The simple Query I am using is

This works
SELECT *
FROM AR_InvoiceHistoryHeader
WHERE InvoiceNo = '0021171'

Does not work
SELECT *
FROM AR_InvoiceHistoryHeader
WHERE InvoiceNo = '0021171'
and invoiceDate = '3/1/2006'
Error: Invalid Operator

nor this
SELECT *
FROM AR_InvoiceHistoryHeader
WHERE InvoiceNo = '0021171'
and invoiceDate = 3/1/2006
Error: Invalid Operator

this fails to
SELECT *
FROM AR_InvoiceHistoryHeader
WHERE InvoiceNo = '0021171'
and invoiceDate = #3/1/2006#
Error: Unexpected Token

Not Sure what other format to use?
My criteria is a date range.
Not Sure what the MAS90 database is what are the choice(I know it is
not MSSQL)

Mar 24 '06 #1
13 9078
PCD
Try changing this:
and invoiceDate = '3/1/2006'
To This:
and invoiceDate = #3/1/2006#

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1150 users have come to me from the newsgroups requesting help
re******@pcdatasheet.com

"Scott" <sc***********@itfirst.com> wrote in message
news:11*********************@e56g2000cwe.googlegro ups.com...
Has anyone over connected to a MAS90 Accounting Application?

I have the Connection working but I cannot seem to get the query
correct.

The simple Query I am using is

This works
SELECT *
FROM AR_InvoiceHistoryHeader
WHERE InvoiceNo = '0021171'

Does not work
SELECT *
FROM AR_InvoiceHistoryHeader
WHERE InvoiceNo = '0021171'
and invoiceDate = '3/1/2006'
Error: Invalid Operator

nor this
SELECT *
FROM AR_InvoiceHistoryHeader
WHERE InvoiceNo = '0021171'
and invoiceDate = 3/1/2006
Error: Invalid Operator

this fails to
SELECT *
FROM AR_InvoiceHistoryHeader
WHERE InvoiceNo = '0021171'
and invoiceDate = #3/1/2006#
Error: Unexpected Token

Not Sure what other format to use?
My criteria is a date range.
Not Sure what the MAS90 database is what are the choice(I know it is
not MSSQL)

Mar 24 '06 #2
I tried that in not workong example 3 I thought it was an access type
query as well but this did not work either.

Mar 24 '06 #3
PCD wrote:
Try changing this:
and invoiceDate = '3/1/2006'
To This:
and invoiceDate = #3/1/2006#

--
To anyone reading this thread:

It is commonly accepted that these newsgroups are for free
exchange of information. Please be aware that PC Datasheet
is a notorious job hunter. If you are considering doing
business with him then I suggest that you take a look at
the link below first.

http://home.tiscali.nl/arracom/whoissteve.html

Randy Harris
Mar 24 '06 #4
Scott wrote:
I tried that in not workong example 3 I thought it was an access type
query as well but this did not work either.


Are you using linked tables to get at your MAS90 tables or pass through
queries?

If the former, you should be able to look at the structure of a linked
table and see how the ODBC "translates" the date information.

If not, you need to have some knowledge of the database engine used by
MAS90.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Mar 25 '06 #5
PCD
You are nothing but an OBSESSED, egocentric A$$. You revel in tracking every
post I make in the newsgroups and do not make any contributions to our
newsgroup. Take the advise that was given to you by a poster not too long
ago and grow up and get a life. We don't need the likes of you in our
newsgroup! Just get lost and quit filling our newsgroup with your slanderous
garbage!!!!!!

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1150 users have come to me from the newsgroups requesting help
re******@pcdatasheet.com
"Please Stop Advertising" <pl****@no.spam> wrote in message
news:Ec******************@newssvr25.news.prodigy.n et...
PCD wrote:
Try changing this:
and invoiceDate = '3/1/2006'
To This:
and invoiceDate = #3/1/2006#

--
To anyone reading this thread:

It is commonly accepted that these newsgroups are for free
exchange of information. Please be aware that PC Datasheet
is a notorious job hunter. If you are considering doing
business with him then I suggest that you take a look at
the link below first.

http://home.tiscali.nl/arracom/whoissteve.html

Randy Harris

Mar 25 '06 #6
PCD wrote:
Try changing this:
and invoiceDate = '3/1/2006'
To This:
and invoiceDate = #3/1/2006#


If you were to read his original post, you would see that he said he
tried that and it didn't work.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
Mar 25 '06 #7
"Randy Harris" <pl****@send.no.spam> wrote in message
news:kp*******************@newssvr21.news.prodigy. com...

If you were to read his original post,


Now you're just being plain ridiculous! ;-)

Keith.
Mar 27 '06 #8
Actually I am not using Access I am using DOTNET What I tried was to
create my queries using Access and that Failed. Then I tried using a
linked server in MSSQL and that failed. It seems that the accounting
package does not take kindly to developers accessing the database
freely becuase the ODBC driver is read only.

The funny thing is that I can DTS into SQL the tables I need and that
my be my only option, but I cannot setup a linked server go figure?

Mar 27 '06 #9
You really need to find out exactly what the database is. Could it could be
b-tree, pervasive, or Sybase?

Sometimes you can open one of the data files in notepad and the first so
many lines will mention the database type. What driver is the odbc
connection utilizing? Have you checked that from a client computer?

--
Jerry Boone
"Scott" <sc***********@itfirst.com> wrote in message
news:11*********************@z34g2000cwc.googlegro ups.com...
Actually I am not using Access I am using DOTNET What I tried was to
create my queries using Access and that Failed. Then I tried using a
linked server in MSSQL and that failed. It seems that the accounting
package does not take kindly to developers accessing the database
freely becuase the ODBC driver is read only.

The funny thing is that I can DTS into SQL the tables I need and that
my be my only option, but I cannot setup a linked server go figure?

Mar 27 '06 #10
Scott wrote:
linked server in MSSQL and that failed. It seems that the accounting
package does not take kindly to developers accessing the database
freely becuase the ODBC driver is read only.


Oh lord, is the database engine Omnis/Studio by Raining Data (formerly
Blythe Software)? One of the DBEs of the Oracle software I'm using is
Omnis (I call it "Ominous") and this really, really limits administrator
options for administration. Hard to believe there's another DB system
vendor that's so stupid/lazy as to limit ODBC access this way.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Apr 3 '06 #11
Go to www.pvx.com and print off the odbc manual. For date
referencing you have to use a date format of YYYY-MM-DD and the sql
syntax has to be the following:

EXAMPLE:
SELECT * FROM INVHISTORYHEADER
WHERE INVOICEDATE > {d '<date>'}

Thanks,
Mike

Oh yeah...does anyone know how to link sql server to mas90?
*** Sent via Developersdex http://www.developersdex.com ***
Apr 19 '06 #12
Sorry this is such a late follow-up, but I was googling around for
thoughts on how to speed up my linked server MAS90 connection, and saw
your question.

To set up a linked server from SQL Server 2000 to MAS90 using Enterprise
Manager:
1. In Enterprise Manager, open the Security tab on your server
2. Right click Linked Servers, click New Linked Server...
3. Type in a useful name to remember it by in the Linked Server: text
box at the top (I use MAS90 and MAS90_TST for production and testing,
respectively).
4. Under Server Type: select Other Data Source
5. Under Provider name: select Microsoft OLE DB Provider for ODBC
Drivers
6. Under Provider string: type "Driver={MAS 90 32-Bit ODBC Driver};
UID=<MAS90 USERNAME>; PWD=<MAS90 PASSWORD>; Directory=<BASE DIRECTORY OF
MAS90>; Company=<COMPANY CODE>; SERVER=NotTheServer" (without the
quotes, and of course with the proper values filled in)

MAS90 doesn't seem to like direct linked server access ("SELECT * FROM
MAS90.AR1_CustomerMaster"). Instead, you'll have to use the OPENQUERY or
OPENROWSET macros. I found the easiest solution to be creating views
that retrieve the data that can be more easily referenced. The SQL
statement (for the above example) would be "SELECT * FROM OPENQUERY(
MAS90, 'SELECT * FROM AR1_CustomerMaster') AR1".

MAS90 has its own SQL syntax that's sometimes cumbersome. If you're okay
with the performance hit of retrieving more records than you need, it's
easier to filter and join after the data's been retrieved.
http://pvx.com has the (rather poor) reference manual for its SQL
syntax.

Another side note is that joining data from linked queries against MAS90
can be an heavy performance hit. It is _incredibly_ faster to store
retrieved data in a temporary table (in memory (DECLARE @temp_table_name
TABLE) if under 10,000 rows, on the drive (CREATE TABLE
#temp_table_name) if over).

Something else to consider is that MAS90's ODBC connector has a few
show-stoppers. Under certain conditions (making too many requests at
once), it'll refuse to return a rowset and SQL Server will have a wait
resource lock that stays and keeps other connections from occurring. To
get around this in my multi-user (and multi-automated code data
retriever) environment, I've had to creating a queueing system for
requests. Another method is to serialize all requests using table locks,
but those can cause their own headaches.

My final solution for MAS90 was to set up queueing (an external DLL
library that all programs that need MAS90 data reference) on one
instance of SQL server that lets users and code make requests one at a
time. But not everything needs up-to-the-second data. At first, I
created a procedure that took a snapshot of all the tables needed
regularly, and ran it daily in the wee hours. This way, any data older
than a day was easily accessible as a regular table on SQL Server. I've
since replaced that with a service that runs all the time on a separate
instance of SQL Server, using the CHECKSUM() function and some outer
joins to detect changes to MAS90 data and propogate these to static
tables. To keep in line with the multi-request issue, only one table is
updated at a time.

The update frequency is weighted based on how often that table changes
and how often more recent data is needed from that table. For the most
commonly used data, it's never more than 5 minutes old. This snapshot
data set is being used for most tasks. Data about to be imported,
however, still uses the queued system so that code-assigned sales order
numbers, customer numbers, etc., are at a very low risk of colliding
with human-assigned numbers (it's a lot easier if you make your sequence
styles unique, so that human-generated numbers are how MAS90 normally
does them, and code-generated numbers all start with a "C" or something,
but other limitations can keep you from choosing that route... like
users). At the moment of import by a VI job, collisions are filtered
out (rather than doubling up two orders on one and overwriting data) and
have to get new unique identifiers assigned before the next import.

Well, this has been quite an essay of a post, but I wish I'd had
something like this to read when I first started out fighting MAS90, so
maybe some hapless monkey out there will get a better head start than I
did.

--Thomas

*** Sent via Developersdex http://www.developersdex.com ***
Apr 26 '06 #13
MAS 90 uses a proprietary indexed sequential database structure called
Providex. If anyone knows how to setup MAS 90 as a SQL Server 200
linked server, this would be great but for now the solution that I have
found is to simply use DTS to replicate the contents of the MAS 90
tables that I am interested in. DTS has no problem pulling MAS 90 data
via ODBC. This probably sounds a little clunky, but it has worked
great.

*** Sent via Developersdex http://www.developersdex.com ***
Apr 27 '06 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MAS 90 reseller | last post by:
I was looking thru the mas90 info site of http://www.accountingsoftwareconsultants.net/mas90_accounting_software.htm for detailed info on MAS 200 SQL server. There's some info on that page, but I...
2
by: Daniel Thomas | last post by:
I am using the code posted on the Access Web by Terry Kreft to shell and wait for an application to finish before continuing. The application I am shelling out to requires that the current...
5
by: gregork | last post by:
I have painstakingly created an excel 2000 workbook for the very complex recipes I have to formulate. I have 2 sheets- 1 for configuring the recipe and 1 that is like an inventory of all the raw...
1
by: jayj0nes | last post by:
I'm querying a Mas90 db via ADO in Access. The following SQL gives me the error "Invalid Operand for Operator: =" "SELECT * from GL_DetailPosting where PostingDate >= '#01/01/2004#'" These other...
4
by: youngster94 | last post by:
Hi all, I'm having a little trouble with some code Im writing and Im thinking there has to be an easy fix. What Ive done is fill a dataset via 3 odbcdataadapters. The dataset is also the...
8
by: cdo4 | last post by:
I currently have Sage MAS200 SQL (with eBusiness and full support) and looking to launch a consumer ecommerce site. I also have an old website (we took it offline to focus on distribution) written...
20
AaronL
by: AaronL | last post by:
Hi everyone, I was just curious as to how many of you own your own business writing software on your own and if you do, what advice could you give to a person going into this type of thing? I'm...
1
by: Phil Stanton | last post by:
Please has anyone any knowledge of extracting data from Sage Accounts into Access. Can link most of the tables, but uncertain of what indexes are used and therefore having problems with queries....
3
by: volatiletrader | last post by:
I am trying to provide users with a link that will automatically log them on to view recordings using Microsoft's Live Meeting. I have been successful having the generic id and password entered....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.