UniConnection InfoMessage event issue, never fires
UniConnection InfoMessage event issue, never fires
Hi
I'm using dcUniversal...
InfoMessage event never fires, i tried many ways but no success, neither unicommand neither uniscript
private void ConnectionOnInfoMessage(object sender, UniInfoMessageEventArgs uniInfoMessageEventArgs) {
...
}
...
var uniCon = new UniConnection
{
... // (I'm using Sql Server provider) (I tested with SQL Server 2005 and 2008 editions)
};
uniCon.Open();
uniCon.InfoMessage += ConnectionOnInfoMessage; // Never fires
var uniComm = new UniCommand("PRINT('OK FROM ExNonQuery')", uniCon);
uniComm.ExecuteNonQuery();
var uniScript = new UniScript("PRINT ('OK FROM SCRIPT')", uniCon);
uniScript.Execute();
uniComm.Connection.Close();
...
Thanks in advance!
I'm using dcUniversal...
InfoMessage event never fires, i tried many ways but no success, neither unicommand neither uniscript
private void ConnectionOnInfoMessage(object sender, UniInfoMessageEventArgs uniInfoMessageEventArgs) {
...
}
...
var uniCon = new UniConnection
{
... // (I'm using Sql Server provider) (I tested with SQL Server 2005 and 2008 editions)
};
uniCon.Open();
uniCon.InfoMessage += ConnectionOnInfoMessage; // Never fires
var uniComm = new UniCommand("PRINT('OK FROM ExNonQuery')", uniCon);
uniComm.ExecuteNonQuery();
var uniScript = new UniScript("PRINT ('OK FROM SCRIPT')", uniCon);
uniScript.Execute();
uniComm.Connection.Close();
...
Thanks in advance!
Re: UniConnection InfoMessage event issue, never fires
Similar code usinng native SqlConnection works as expected! But i want to still coding in dcUniversal.
private void SqlConOnInfoMessage(object sender, SqlInfoMessageEventArgs sqlInfoMessageEventArgs)
{ ... }
//System.Data.SqlClient.SqlConnection
var sqlCon = new SqlConnection("Data Source=...;Initial Catalog=...;User id=...;Password=...;");
sqlCon.Open();
sqlCon.InfoMessage += SqlConOnInfoMessage;
var sqlCom = new SqlCommand("PRINT ('OK FROM Sys Data SqlClient SqlConnection')", sqlCon);
sqlCom.ExecuteNonQuery();
sqlCon.Close();
private void SqlConOnInfoMessage(object sender, SqlInfoMessageEventArgs sqlInfoMessageEventArgs)
{ ... }
//System.Data.SqlClient.SqlConnection
var sqlCon = new SqlConnection("Data Source=...;Initial Catalog=...;User id=...;Password=...;");
sqlCon.Open();
sqlCon.InfoMessage += SqlConOnInfoMessage;
var sqlCom = new SqlCommand("PRINT ('OK FROM Sys Data SqlClient SqlConnection')", sqlCon);
sqlCom.ExecuteNonQuery();
sqlCon.Close();
Re: UniConnection InfoMessage event issue, never fires
Thank you for your report. We have reproduced the issue and will notify you when it is fixed.
Re: UniConnection InfoMessage event issue, never fires
Hi! Do you have an ETA fix?
Thanks in advance!
Thanks in advance!
Re: UniConnection InfoMessage event issue, never fires
The bug with firing the UniConnection.InfoMessage event while working with SQL Server is fixed. We will notify you when the new public build of dotConnect Universal is available for download.
Re: UniConnection InfoMessage event issue, never fires
Thanks I'll wait for it.
Will that event also work for the other data providers?
Thanks in advance!
Will that event also work for the other data providers?
Thanks in advance!
Re: UniConnection InfoMessage event issue, never fires
Please specify the list of providers (used via dotConnect Universal) you are interested in.idem84 wrote:Will that event also work for the other data providers?
Re: UniConnection InfoMessage event issue, never fires
Actually at least could be great that supports SqlServer and MySql
It could be great if that will support Oracle and Postgre too maybe later.
That the event could be enabled in a general way for actually dcUniversal providers
Thanks in advance!
It could be great if that will support Oracle and Postgre too maybe later.
That the event could be enabled in a general way for actually dcUniversal providers
Thanks in advance!
Re: UniConnection InfoMessage event issue, never fires
We are working on the UniConnection.InfoMessage support for MySQL / Oracle / PostgreSQL. We will notify you when it is implemented.
Re: UniConnection InfoMessage event issue, never fires
The bug with firing the UniConnection.InfoMessage event while working with MySQL, Oracle, PostgreSQL is fixed. We will notify you when the new public build of dotConnect Universal is available for download.
Re: UniConnection InfoMessage event issue, never fires
The new (3.70.1477) build of dotConnect Universal is available for download.