从.NET Winform到Sage 300 CRE的非ODBC连接可能吗? [英] Non ODBC connection to sage 300 CRE from .NET winform possible?

查看:104
本文介绍了从.NET Winform到Sage 300 CRE的非ODBC连接可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Windows窗体应用程序,这是从Vb6迁移的项目,需要连接到Sage300 CRE数据库.我在Vb6中看到了ADODB连接,例如

I am working on a Windows forms application, a migration project from Vb6 and need to connect to Sage300 CRE database. I see ADODB connection in Vb6, like

"Driver=Timberline Data;DBQ=<database>; CODEPAGE=1252; DatabaseType=1; DictionaryMode=1;MaxColSupport=255;ShortenNames=0;StandardMode=0; 
    UID=<username>;PWD=<password>"

到目前为止,我得到的答案是,我应该对我的.net代码使用ODBC连接.我需要从调用GetSchema()方法的连接对象中检索表,列,PrimaryKey,ForeignKey模式信息.并且主键&的ODBC GetSchema()不存在.外键.我可以使用其他任何提供程序类型来连接到Sage300CRE,这也可以帮助我获取上述架构信息吗?

我尝试过的事情:

我尝试了与Firebird等不同数据库的ODBC连接,并且了解了GetSchema的限制,并在这种情况下切换到了Firebird Ado.net提供程序.所以想知道是否也有适用于Sage300CRE的类似选项?

So far from my search, I get as I should use ODBC connection for the same from my .net code. I need to retrieve Table, Columns, PrimaryKey, ForeignKey schema info from the connection object calling GetSchema() method. And ODBC GetSchema() does not exist for primary key & Foreign Key. Is there any other provider type I can use to connect to Sage300CRE, that helps me get the above mentioned schema info too?

What I have tried:

I have tried ODBC connection to different databases like Firebird and got to know the GetSchema limitation and switched to Firebird Ado.net provider in that case. So would want to know if similar options available for Sage300CRE too?

推荐答案

我建​​议阅读以下内容:
I''d suggest to read this: An Introduction to the Sage 300 ERP .Net API | Stephen Smith''s Blog[^]
After quick research i''m pretty shure that it''s the only way to retrive entire information about database objects such as tables, keys, etc.


这篇关于从.NET Winform到Sage 300 CRE的非ODBC连接可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆