import lrapi.lr;
import java.io.*;
import java.sql.*;
public class Actions
{
String conURL="jdbc:sqlserver://192.168.1.101:1433;DatabaseName=testjavavuser";
String user="sa";
String password="sa123";
Statement stat;
Connection conn;
public int init() throws Throwable {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
conn = DriverManager.getConnection(conURL,user,password);
return 0;
}//end of init
public int action() throws Throwable {
lr.start_transaction("lr_Query_data_trans");
stat=conn.createStatement();
stat.executeQuery("<QueryParm>");
lr.end_transaction("lr_Query_data_trans",lr.AUTO);
return 0;
}//end of action
public int end() throws Throwable {
stat.close();
conn.close();
return 0;
}//end of end
}作者: gztester 时间: 2011-1-17 09:22
QueryParm是什么数据,迭代几次啊?作者: Ж神Ж 时间: 2011-1-17 13:05
QueryParm是sql语句