T
txtaz
Hello group,
I am trying to creata a DSN less connection using PNUTS (sort of
JAVA). Here is the code:
function createJDBCDataSet()
{
import("sun.jdbc.odbc.JdbcOdbcDriver")
import("sun.jdbc.odbc.Embeddedata")
dbName = "SATAPP1"
tableName = "STResult";
ds = embeddedDataSource();
ds.setDatabaseName(dbName);
con = ds.getConnection();
stmt = con.createStatement();
rs = stmt.executeQuery("select * from STResults");
}
I get an error when I run it "pnuts.lang.PnutsException :
embeddedDataSource is not defined".
I'm sure the issue is with the import of the Embedded data class (I
guessed at what it was called).
Anyone have any ideas?
TIA
Wes
I am trying to creata a DSN less connection using PNUTS (sort of
JAVA). Here is the code:
function createJDBCDataSet()
{
import("sun.jdbc.odbc.JdbcOdbcDriver")
import("sun.jdbc.odbc.Embeddedata")
dbName = "SATAPP1"
tableName = "STResult";
ds = embeddedDataSource();
ds.setDatabaseName(dbName);
con = ds.getConnection();
stmt = con.createStatement();
rs = stmt.executeQuery("select * from STResults");
}
I get an error when I run it "pnuts.lang.PnutsException :
embeddedDataSource is not defined".
I'm sure the issue is with the import of the Embedded data class (I
guessed at what it was called).
Anyone have any ideas?
TIA
Wes