我讨厌IBM的网站.在那里找到任何东西是非常困难的,更不用说试图找到它两次了!
我正在寻找UniObjects for .NET.我找到了以下文件并安装了它们(现在无法在IBM的网站上找到它们)但是当我去安装Visual Studio(v9.7)的数据库加载项时,它说的是.Net的IBM数据服务器提供程序.没有安装.
我正在找人指点链接和步骤来安装Visual Studio的加载项,以便我能够连接到UniData数据库.使用.NET和UniData的任何其他指针,提示或技巧也将受到赞赏.
这是我安装的文件无济于事.(我在64位Windows XP机器上)
-谢谢
更新2010-11-14: IBM不久前将UniData销售给RocketSoftware.可以找到RocketSoftware上的UniObjects信息http://www.rocketsoftware.com/u2/middleware/
我一直在玩 UniObjects .NET。
我希望能够运行 SELECT 查询并将数据放入可以运行数据的表单中。
我目前正在使用
// UniCommans is a new instance of the CreateUniCommand() method
UniCommand cmd = us1.CreateUniCommand();
string UVDatabaseName = "SLCUST";
// Command is the query that will be sent to the server to be rum
cmd.Command = "SELECT " + UVDatabaseName + " USING DICT " + UVDatabaseName + " WITH CUSREF PRICECODE";
Run Code Online (Sandbox Code Playgroud)
但我不知道如何将数据放入它们提供的数据类型对象之一:
单选列表
// OpenSession is used to open a new session to the database
us1 = UniObjects.OpenSession("92.0.0.1", "username", …Run Code Online (Sandbox Code Playgroud)我从使用ASCII字符254作为分隔符的数据库中提取数据.我很难过如何搜索为254返回的字符串然后根据它创建字典?
我的python类
import sys
sys.path.append('C:\\IBM\\UniDK\\uojsdk\\lib\\asjava.jar')
import os.path
from asjava.uniclientlibs import UniDynArray, UniDataSet
from asjava.uniobjects import UniSession, UniFile
from asjava.uniobjects import UniSubroutineException
from asjava.uniobjects.UniObjectsTokens import AT_FM
class u2py :
def __init__ (self):
self.conn = UniSession()
def get_db(self):
""" establish a connection to Unidata """
username = 'dbuser'
password = 'SuperSecretPassword'
return self.conn.connect("host", username, password, "ACCOUNT")
def close_db(self):
""" drop connection to Unidata """
if self.conn.isActive():
self.conn.disconnect()
def open_file(self,file_name,rec):
""" open a U2 file read a record and return it """
uvfile …Run Code Online (Sandbox Code Playgroud)