Hi all,
I write a simple code to get data from Progress DB and fill it to Dataset by C# but it always raise an error "Access denied (Authorisation failed) (7512)".
My c# code:
string odbcString = "DSN=ProgressODBC;Host=localhost;Port=7001;DB=xxxx;UID=xxxx;PWD=xxxx";
using (OdbcConnection Conn = new System.Data.Odbc.OdbcConnection(odbcString))
{
OdbcCommand cmd = new OdbcCommand("SELECT count(*) FROM pub.tablename", Conn);
Conn.Open();
OdbcDataAdapter odbcDA = new OdbcDataAdapter(cmd);
odbcDA.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
I use "Progress OpenEdge 10.2A Driver".
Any help will be appreciated
Dan
I write a simple code to get data from Progress DB and fill it to Dataset by C# but it always raise an error "Access denied (Authorisation failed) (7512)".
My c# code:
string odbcString = "DSN=ProgressODBC;Host=localhost;Port=7001;DB=xxxx;UID=xxxx;PWD=xxxx";
using (OdbcConnection Conn = new System.Data.Odbc.OdbcConnection(odbcString))
{
OdbcCommand cmd = new OdbcCommand("SELECT count(*) FROM pub.tablename", Conn);
Conn.Open();
OdbcDataAdapter odbcDA = new OdbcDataAdapter(cmd);
odbcDA.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
I use "Progress OpenEdge 10.2A Driver".
Any help will be appreciated
Dan