0

I'm trying code similar to below to create a data pipeline to migrate data from a database to another. The pipeline works fine with the desktop application, but when I migrate the application to the .net web forms application to use on the internet, the pipeline does not work. It returns the error code "-1" (while on desktop, it returns 1). Can someone tell me what is problem, why it does not work on the internet? I am using Powerbuilder classic 12, with Sybase Anywhere 12 using ODBC on Windows XP/IIS 5.1.

Transaction trans_source, trans_dest

trans_source=CREATE Transaction
trans_dest=CREATE Transaction

trans_source.DBMS = "ODBC"
trans_source.DBPARM = "ConnectString='DSN=db1;UID=dba;PWD=sql"

trans_dest.DBMS = "ODBC"
trans_dest.DBPARM = "ConnectString='DSN=db2;UID=dba;PWD=sql"

connect using trans_source;
connect using trans_dest;

lp_Create=CREATE p_pipe
lp_Create.DataObject="p_create_tableA"

result_value = lp_Create.Start(trans_source,trans_dest,dw_errors)
messagebox("result", result_value)
4

1 回答 1

1

WebForms 不支持管道。(外部参照将应用程序和组件部署到 .NET

祝你好运,

特里。

于 2011-10-11T15:05:43.840 回答