Version 9.1
I'm attempting to implement a scripted BO using that uses the IDataSetAccess interface, and manages the connection internally. This is very similar to the examples in C:\Program Files (x86)\Metastorm\BPM\Sample Processes\sample 3
In the Read() method I use standard .NET objects to make the connection to an external SQL-server DB and return a dataset.
publicSystem.Data.DataSet Read()
{
DataSet ds = new DataSet();
SqlConnection con = new SqlConnection(this.ConnectionString);
SqlCommand cmd = new SqlCommand("SELECT..... ");
cmd.CommandType = CommandType.Text;
cmd.Connection = con;
cmd.Connection.Open();
SqlDataAdapter da = newSqlDataAdapter(cmd);
da.Fill(ds);
cmd.Connection.Close();
return ds;
}
Problem is, somehow this connection is expecting to use a transaction manager. The DB does not have the transaction manager enabled and it is not practical to do so. Why is this expecting to use a transaction manager? Can I change that?