菜鸟初学,连接数据库报错:database transaction information not available call settrans or settransobject function
初学powerbuilder,用着数据窗口控件和数据窗口对象。
数据库能正常连接,在数据窗口对象里能看到数据的。我用的后台数据库是SQL SERVER 2000。我在应用里写的语句如下:
SQLCA.Database = "db_client"
SQLCA.ServerName = "Douliang"
SQLCA.LogId = "sa"
SQLCA.LogPass = "sa"
SQLCA.AutoCommit =true
SQLCA.DBParm = ""
connect;
//这些都是我从database profile setup对话框中的preview选项里复制过来的
然后做了一个窗口,放了一个数据窗口控件w_student,选择了数据窗口对象d_student,按钮“检索”的click函数为:
dw_student.settransobject(SQLCA)
dw_student.retrieve()
为何一运行就提示database transaction information not available call settrans or settransobject function”
请各位大侠教我!!!!