Page 1 of 3 1 2 3 >
Topic Options
#49675 - 04/19/16 01:04 PM ODBC Connection Wizard
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Hi,

I'm trying to start a small development project in Visual Studio 2013 using the ODBC 9.1A and I'm getting an error when trying to retrieve the Tables.

My connection is successful as per the screen shot below but Visual Studoi cannot retrieve the tables.

SAny help would be appreciated.

Connection Successful

Connection Wizard

PS: I am able to get data into Excel...

Top
#49679 - 04/19/16 02:02 PM Re: ODBC Connection Wizard [Re: Yann]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3641
Loc: Toronto ON, Canada
Hi Yann:

Error code HYC00 represents a number of errors such as "Catalogs are not supported", "Schemas are not supported", "Create index statements are not supported", "Create table statements are not supported" and "Optional feature not implemented". As you can see, the messages aren't very specific but they do indicate a significant failure.

At the point this error appears, have you selected a table or are you are trying to populate the list of tables?

BTW, I don't know if it would make any difference at all, but there is a new version of the ODBC utility. If you are on the annual upgrades plan, you could install version 9.2.

Could you please add a screen shot of the DSN configuration?


Edited by Bruce Gardner (04/19/16 02:03 PM)
Edit Reason: Add screen shot request
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#49693 - 04/20/16 10:19 AM Re: ODBC Connection Wizard [Re: Bruce Gardner]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Hi Bruce,

Thanks for the reply.

At the point where I get the error I am waiting for the Tables to populate.
I have tested with another ODBC Datasource (SQL Server) and it populates properly.

I am waiting for the install codes from my reseller to get the 9.2A installed, it might help...

Here is the screen shot of my Adagio 32 Bit DSN
Data Directory points to the Data Folder...
Username and Password are also populated.

Adagio 32 Bit DSN

Thanks
Yann

Top
#49705 - 04/20/16 01:53 PM Re: ODBC Connection Wizard [Re: Yann]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3641
Loc: Toronto ON, Canada
Hi Yann:

To the extent that the DSN has anything to show, it looks correct. You could try a single asterisk in place of "AR*", though it shouldn't make any difference in reality. You've created a 32-bit DSN which is correct for Visual Studio. Let's see if the new ODBC version helps at all.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#49723 - 04/21/16 04:08 PM Re: ODBC Connection Wizard [Re: Bruce Gardner]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
I updated to 9.2A
tested and not working...

I changed the Table Selection to * from AR*
tested and not working...

I updated the Data Directory from \\SERVER\DATAFOLDER\ to mapped drive G:\DATAFOLDER
tested and not working...

Not sure what the issue is at this point...

Top
#49724 - 04/21/16 04:15 PM Re: ODBC Connection Wizard [Re: Yann]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Can you connect to the sample data using Excel? Can you connect to your data using Excel?
_________________________
Andrew Bates

Top
#49725 - 04/21/16 04:27 PM Re: ODBC Connection Wizard [Re: Retired_Guy]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Yes, I have no issue using Excel Query to bring the data in.

Top
#49726 - 04/21/16 04:31 PM Re: ODBC Connection Wizard [Re: Yann]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Perhaps it is the call that is trying to populate the tables that is causing the problem. Have you tried just opening the connection and reading known fields from a known table? You can get the ODBC table and field names from the Data Dictionary Exporter.

Perhaps a description of what you are trying to accomplish would be useful.


Edited by Andrew Bates (04/21/16 05:00 PM)
_________________________
Andrew Bates

Top
#49730 - 04/22/16 10:45 AM Re: ODBC Connection Wizard [Re: Retired_Guy]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Thanks Andrew,

At the end of the day, what we are trying to accomplish is show the current, +30, +60, +90 for each of our customers in a windows app.
The table I was thinking that would be appropriate to work with is the "AR Trans w Cust" (that's the name in GridView.

There seams to be different table names depending on where you look.
in Excel it comes up as ARTranswCust__ar92a100

I was looking for a matching table after using the Data Dictionary Exporter but could not find anything like the ARTranswCust__ar92a100 or "AR Trans w Cust"
Maybe these are views...

Any chance you could point me in the right direction?
Thanks
Yann

Top
#49731 - 04/22/16 10:55 AM Re: ODBC Connection Wizard [Re: Yann]
Steve Schwartz Offline
Adagio God

Registered: 03/10/02
Posts: 4534
Loc: Wynnewood, PA
Hi Yann

Why not use the AR Customer Master table - it has those fields as well, and reading from that table is very very straightforward. The only downside is that someone has to run Receivables | Maintenance | Calculate Customer Aging once a day. But that is not so awful, because it can be set to run automatically when the first person launches Receivables each morning.

When you run that function, you probably will want to uncheck "Update on hold by", and you can choose whether to update the fields based on the document date or the due date.

Steve

Top
#49732 - 04/22/16 10:55 AM Re: ODBC Connection Wizard [Re: Yann]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11616
Loc: Vancouver, BC Canada
Hi Yann,

Did you want your app to do the 30/60/90 calculations, or is it OK to have Adagio do this ahead of time with the Calculate Customer Aging function? If the latter choice would work, then all you need is the customer master file (without transactions), as the aged amounts are stored in fields titled 'Aged Current', Aged Bucket 1', 'Aged Bucket 2', etc.
_________________________
Regards,
Softrak Tech Support

Top
#49735 - 04/22/16 02:18 PM Re: ODBC Connection Wizard [Re: Softrak Support]
Michael Mulrooney Offline
Adagio Virtuoso

Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC
"..small development project in Visual Studio 2013 using"

If you upload a backup VS2013 project or the "code snippet" that is causing the failure I will have R&D take a look.
Upload to www.softrak.com/dbr for Tech Support attention Michael

Top
#49752 - 04/25/16 01:20 PM Re: ODBC Connection Wizard [Re: Michael Mulrooney]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Thanks Michael,

Because I am not as familiar as I would like to be with the Adagio tables, I'm trying to use the Data Source Configuration Wizard in Visual Studio.

If you have an example of a Adagio Connection string and some DataAccess code, it could be helpful.

Can I use SqlCommand when querying your tables?

Thanks
Yann

Top
#49755 - 04/25/16 01:52 PM Re: ODBC Connection Wizard [Re: Yann]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Ok,

I was able to get all the records from the ARTranswCust__ar92a100 table by using the following code...
The Wizard does not seam to be compatible with the Adagio Data Source for some reason. Could be a problem similar to the Excel Query, where it won't display tables with more than 255 columns...

My Data Table was filled after a good 15-20 seconds (it wasn't very fast).
I'll try other tables as well as filter the results to see if I can speedup the process.



DataTable vendorTransactions = new DataTable();

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString = "DSN=Adagio Data Source; ";
try
{
conn.Open();
OdbcCommand command = conn.CreateCommand();
command.CommandText = "select * from ARTranswCust__ar92a100";

OdbcDataAdapter adapter = new OdbcDataAdapter();
adapter.SelectCommand = command;
adapter.Fill(vendorTransactions);

// Process data here.
}
catch (Exception ex)
{
MessageBox.Show("Failed to connect to data source");
}
finally
{
conn.Close();
}

Top
#49765 - 04/25/16 02:41 PM Re: ODBC Connection Wizard [Re: Yann]
Michael Mulrooney Offline
Adagio Virtuoso

Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC
I would not use "Select *" from any table. In this case you are getting back 276 columns time # records in AR Transaction file.

Use ...\Softrak\system\DataDictionaryExporter.exe /ODBC to create an Excel Workbook that lists all the data elements in all the tables for a particular application.

With the AR 92 Sample data Select * From ARTRanswCust returned 185,000 data cells.

Top
#49769 - 04/25/16 03:05 PM Re: ODBC Connection Wizard [Re: Michael Mulrooney]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Yes, Thank you.
I had done the Data Dictionary Export already.

in response to the post from "Softrak Tech Support" it was suggested that I look in the 'Aged Current', Aged Bucket 1', 'Aged Bucket 2', etc.
but there is no data in there...

Even on my Customer screen, I do not have any data in the Current, 1-30, 31-45, 46-60, over 60 boxes at the bottom of the window...

Thanks

Top
#49771 - 04/25/16 03:43 PM Re: ODBC Connection Wizard [Re: Yann]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Hi,

Further to my last post, I noticed that if I want to pick columns by defining my own query, the column names do not match what came out of the Data Dictionary Export.
for example, i am able to do this: select cust, Name, Name2, BalanceOutstanding from AR92ACST where BalanceOutstanding > 0
But the columns are actually named as such in the Data Dictionary
cust # (with a space and a # sign)
Name
Name 2 (with a space)
Balance Outstanding (with a space)

How do I know what the column should be called?

Thanks
Yann

Top
#49772 - 04/25/16 04:09 PM Re: ODBC Connection Wizard [Re: Yann]
Michael Mulrooney Offline
Adagio Virtuoso

Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC

Use ...\Softrak\system\DataDictionaryExporter.exe /ODBC to create an Excel Workbook that lists all the data elements in all the tables for a particular application.

NOTE: /ODBC to create ODBC compliant names

Top
#49773 - 04/25/16 04:10 PM Re: ODBC Connection Wizard [Re: Yann]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
You need to start the Data Dictionary Exporter with /ODBC on the command line to get the ODBC names. Otherwise you get the GridView Names.

You need to run "Calculate Customer Aging" to populate the fields in the customer master.
_________________________
Andrew Bates

Top
#49783 - 04/26/16 09:01 AM Re: ODBC Connection Wizard [Re: Retired_Guy]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Thank you.

Is there any way to change the settings for the aged values?
If I wanted to 1-30, 30-60, 60-90 and over 90 in the fields of the Customer Master table?

AgedBucket1
AgedBucket2
AgedBucket3
AgedBucket4
AgedDays1
AgedDays2
AgedDays3

Thanks
Yann


Edited by Yann (04/26/16 09:11 AM)

Top
#49787 - 04/26/16 10:23 AM Re: ODBC Connection Wizard [Re: Yann]
Steve Schwartz Offline
Adagio God

Registered: 03/10/02
Posts: 4534
Loc: Wynnewood, PA
When you run the Calculate function, you can change the dates. The default dates come from Company Profile | Statements/Reports

Top
Page 1 of 3 1 2 3 >


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 80 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1872 Members
5 Forums
14527 Topics
70937 Posts

Max Online: 432 @ 01/20/25 10:17 PM
August
Su M Tu W Th F Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31