Could you please send us a small project with the problem?
As far as I could understand, you are using the only OracleConnection for multiple DataTables and this connection is somehow set at design-time. Since OracleConnection is a reference type, its properties can be changed once in any DataTable.Connection and this will affect all other DataTables. Please let me know if I've missed something.
Search found 1710 matches
- Tue 15 Dec 2009 09:03
- Forum: dotConnect for Oracle
- Topic: ConnectionString in app.config
- Replies: 3
- Views: 1687
- Mon 14 Dec 2009 15:16
- Forum: dotConnect for PostgreSQL
- Topic: DEPLOYMENT ISSUE
- Replies: 1
- Views: 2258
Please try adding the following code to the System.Data node of your machine.config file:
(replace 4.65.57.0 here with your actual version).
For more information, please see the Deployment section in our help:
http://www.devart.com/dotConnect/PostgreSQL/docs/ .
Code: Select all
For more information, please see the Deployment section in our help:
http://www.devart.com/dotConnect/PostgreSQL/docs/ .
- Mon 14 Dec 2009 12:32
- Forum: dotConnect for Oracle
- Topic: ConnectionString in app.config
- Replies: 3
- Views: 1687
You can set a reference to the connection put on another form either at design-time or at run-time. At design-time you can refer to the connection by some other component (like OracleDataTable) and then edit OracleDataTable.Connection. At run-time you can get the connection directly like this:
Please let us know if this helped.
Code: Select all
OracleConnection con = (OracleConnection)Devart.Common.GlobalComponentsCache.GetObjectByName ("YourDataForm.YourConnection");
- Mon 14 Dec 2009 12:28
- Forum: dotConnect for MySQL
- Topic: Trailing Zero missing from Data in Data Table
- Replies: 8
- Views: 3387
To resolve the problem with converting MySqlDecimal you can try creating your own conversion function, e.g.
Though this solution is not completely one-point, at least you'll be able to auto-replace Convert.ToDecimal with MyConverter.ToDecimal.
As for DBNull issue, you can use the IsNull property casting objects like ds.Tables[0].Rows[0]["Percent_Owned"] to System.Data.SqlTypes.INullable interface.
Code: Select all
class MyConverter
{
public static decimal ToDecimal(object value)
{
if (value is MySqlDecimal)
return (decimal)((MySqlDecimal)value);
else return System.Convert.ToDecimal(value);
}
}
As for DBNull issue, you can use the IsNull property casting objects like ds.Tables[0].Rows[0]["Percent_Owned"] to System.Data.SqlTypes.INullable interface.
- Fri 11 Dec 2009 11:30
- Forum: dotConnect for MySQL
- Topic: Trailing Zero missing from Data in Data Table
- Replies: 8
- Views: 3387
The decimals stored in databases have trailing zeros as it is the way MySQL represents them. The decimals stored in DataTable are of the .NET type "decimal" which has no information about their precision. Thus, when the decimals from DataTable are displayed, e.g. in some Grid class, they are converted to strings by the standard ToString() method.
Probably, the provider you've previously used had specific ToString() conversion which added trailing zeros. dotConnect for MySQL doesn't have such functionality, hence we can only advice you to customize the controls in which you display data.
Probably, the provider you've previously used had specific ToString() conversion which added trailing zeros. dotConnect for MySQL doesn't have such functionality, hence we can only advice you to customize the controls in which you display data.
- Thu 10 Dec 2009 16:35
- Forum: dotConnect for Oracle
- Topic: Compatibility Devart Oracle + Devart PostGreSQL
- Replies: 1
- Views: 1329
- Thu 10 Dec 2009 16:32
- Forum: dotConnect for PostgreSQL
- Topic: Add more queries to a tableadapter
- Replies: 2
- Views: 1585
Unfortunately, the design-time support of multiple queries for TableAdapter is not available now. We will consider the possibility of adding such functionality in one of the future dotConnect for PostgreSQL versions.
At the moment you can add more queries e.g. to the custom DataTable class. Thus, if you've generated a custom DataSet class CustomDataSet and corresponding DataTable class CustomDataSet.CustomDataTable, it will be something like
At the moment you can add more queries e.g. to the custom DataTable class. Thus, if you've generated a custom DataSet class CustomDataSet and corresponding DataTable class CustomDataSet.CustomDataTable, it will be something like
Code: Select all
using Devart.Data.PostgreSql;
namespace YourApplicationNamespace
{
public partial class CustomDataSet
{
public partial class CustomDataTable
{
public decimal getCount()
{
PgSqlCommand command = new PgSqlCommand(
"select count(*) from Your_Table", Connection);
try
{
if (Connection.State !=System.Data.ConnectionState.Open)
Connection.Open();
object ret = command.ExecuteScalar();
return (decimal)ret;
}
catch
{
return -1;
}
finally
{
Connection.Close();
}
}
}
}
}
- Wed 09 Dec 2009 15:24
- Forum: dotConnect for Oracle
- Topic: Oracle Advanced Queuing - async mode
- Replies: 3
- Views: 1619
1) I've tested the sample with Oracle client and DBMS version 11.
2) Please provide us your email address so that I'd be able to send you the exact project.
3) We recommend our customers to use the latest version of the Oracle client.
4) To check whether code in the sample works you should check if the message sent to the server returns to the subscribed event.
2) Please provide us your email address so that I'd be able to send you the exact project.
3) We recommend our customers to use the latest version of the Oracle client.
4) To check whether code in the sample works you should check if the message sent to the server returns to the subscribed event.
- Wed 09 Dec 2009 12:57
- Forum: dotConnect for Oracle
- Topic: Bulk insert/update
- Replies: 5
- Views: 4844
- Tue 08 Dec 2009 15:40
- Forum: dotConnect for Oracle
- Topic: 5.35.57 uninstall
- Replies: 1
- Views: 1487
- Tue 08 Dec 2009 13:52
- Forum: dotConnect for Oracle
- Topic: Problem with applying SYS.DBMS_SCHEDULER.CREATE_JOB on 10G
- Replies: 3
- Views: 3207
- Tue 08 Dec 2009 12:56
- Forum: dotConnect for Oracle
- Topic: Problem with string + int parameters
- Replies: 2
- Views: 1616
Please specify versions of dotConnect for Oracle and Oracle DBMS you are using.
I've tested your code using Oracle database versions from 9 to 11 and the latest 5.35.57 build of dotConnect for Oracle. It created the table Devarttestparam, inserted a row into it, selected this row, showed it in a message box and then dropped the table.
I can send you a small project so that you'd be able to show the possible inexactitudes in reproducing the issue.
I've tested your code using Oracle database versions from 9 to 11 and the latest 5.35.57 build of dotConnect for Oracle. It created the table Devarttestparam, inserted a row into it, selected this row, showed it in a message box and then dropped the table.
I can send you a small project so that you'd be able to show the possible inexactitudes in reproducing the issue.
- Mon 07 Dec 2009 17:19
- Forum: dotConnect for Oracle
- Topic: Problem with applying SYS.DBMS_SCHEDULER.CREATE_JOB on 10G
- Replies: 3
- Views: 3207
- Mon 07 Dec 2009 12:24
- Forum: dotConnect for Oracle
- Topic: Oracle Advanced Queuing - async mode
- Replies: 3
- Views: 1619
Unfortunately, we couldn't reproduce the error.
If you've made any changes in the sample, please send us a test project.
Otherwise, please note that the sample is a multi-threaded application and the error most likely occurs in threads invoking the getMessageData function.
Besides, please specify if 10.1.0.2 is the version of your Oracle client, Oracle DBMS or both.
If you've made any changes in the sample, please send us a test project.
Otherwise, please note that the sample is a multi-threaded application and the error most likely occurs in threads invoking the getMessageData function.
Besides, please specify if 10.1.0.2 is the version of your Oracle client, Oracle DBMS or both.
- Thu 03 Dec 2009 14:28
- Forum: dotConnect for Oracle
- Topic: How to catch Oracle password grace period?
- Replies: 3
- Views: 1991
We have investigated the problem. As ORA-28002 is an informational message and actually not an error, it throws no exception.
We have added the functionality to trace the message, it will be available in the next build. ORA-28002 will invoke the OracleConnection.InfoMessage event, and the Code property of the corresponding OracleInfoMessageEventArgs object will contain the message code (i.e. 28002).
We have added the functionality to trace the message, it will be available in the next build. ORA-28002 will invoke the OracleConnection.InfoMessage event, and the Code property of the corresponding OracleInfoMessageEventArgs object will contain the message code (i.e. 28002).