Search found 2422 matches

by Pinturiccio
Fri 24 May 2019 08:57
Forum: dotConnect for SQLite
Topic: Feature / Virtual Table
Replies: 18
Views: 21287

Re: Feature / Virtual Table

Hello BORINS,

Unfortunately, the situation didn't change. This feature is not in our roadmap, and there is no timeframe.
by Pinturiccio
Thu 16 May 2019 15:05
Forum: dotConnect for Oracle
Topic: NLS_LANG not taken from selected Oracle_Home
Replies: 1
Views: 1125

Re: NLS_LANG not taken from selected Oracle_Home

viewtopic.php?t=38725
This is the Oracle Client behavior. The same NLS_LANG is used for all Oracle Clients with the same major version. NLS_LANG value is taken from the first loaded Oracle Client. For example, if you have two Oracle Clients 12.x, they both will have the same NLS_LANG. Since default home is loaded at first, its NLS_LANG is used for all Oracle Clients with the same major version.
We will investigate the possibility of changing this behavior from our side, but there is no timeframe.
DEVNET wrote: Do you have an example on the usage of this. We are using below lines of code to connect to oracle using UniConnection.
using (UniConnection testConnection = new UniConnection(connectionString))
{
try
{
testConnection.Open();
testConnection.Close();
}
}
Use the following code:

Code: Select all

using (UniConnection testConnection = new UniConnection("Provider=Oracle; Host=<HOST>; User Id=<User Id>; Password=<PASSWORD>; Home=<Home>; Run Once Command=\"ALTER SESSION SET NLS_LANGUAGE= 'AMERICAN'\";"))
by Pinturiccio
Thu 16 May 2019 14:56
Forum: dotConnect for Oracle
Topic: embedded licensing issue
Replies: 1
Views: 1125

Re: embedded licensing issue

The given error text means, that your project lacks the license resource. When you create an application that uses Devart assemblies, it must have a license resource. License information is a specially formed embedded resource. It is checked when a connection is opened.

According to this error text, you have a class library, which uses dotConnect for Oracle. This library is used by some application. Class library licensing is a special case. In addition to the licenses.licx file, you need to create a licenses.config file with the list of the names of executable files that will work with the library.

dotConnect for Oracle includes License Wizard that helps you configure license information. To invoke the wizard, select Oracle -> License Information from the Visual Studio Tools menu. After this click the Fix button in the dialog and follow the wizard's instructions. License Wizard eases adding the license resource to the class library. For more information, please refer to http://www.devart.com/dotconnect/oracle ... g.html#lib
by Pinturiccio
Tue 14 May 2019 17:20
Forum: dotConnect for Oracle
Topic: License only activated on connection.Open()
Replies: 2
Views: 1203

Re: License only activated on connection.Open()

The OracleScript class is not present in the Free edition of dotConnect for Oracle. Thus, you need to activate the license first when you use assemblies from NuGet packages. And activating can be done only when opening a connection.

As a workaround you can open a connection only with the one parameter "License Key". Opens will fail, thus you need to run it in the try block. License check is performed before a connection opening. Thus you can use OracleScript right after the catch block.
by Pinturiccio
Wed 08 May 2019 15:59
Forum: dotConnect for Oracle
Topic: How to read DateTimeOffset from OracleObject
Replies: 13
Views: 9653

Re: How to read DateTimeOffset from OracleObject

We have reproduced the issue. We will investigate it and post here about the results as soon as possible.
by Pinturiccio
Mon 06 May 2019 14:09
Forum: dotConnect for Oracle
Topic: How to read DateTimeOffset from OracleObject
Replies: 13
Views: 9653

Re: How to read DateTimeOffset from OracleObject

You can read datetime offset. Let's consider the following example:

Code: Select all

CREATE OR REPLACE TYPE SEMENB.TAddress AS OBJECT (
  Country VARCHAR2(30),
  City VARCHAR2(30),
  Street VARCHAR2(30),
  Apartment NUMBER,
  offset TIMESTAMP(6) WITH TIME ZONE
);

CREATE TABLE EmpObject (
  Code NUMBER PRIMARY KEY,
  Person VARCHAR2(40),
  Address TAddress,
  Job VARCHAR2(9)
);

INSERT INTO EmpObject (Code, Person, Address, Job) VALUES (1, 'SMITH', TAddress('UK', 'London', 'Street', 12, '07-AUG-2017 2:00:00 PM +6:00'), 'CLERK');

INSERT INTO EmpObject (Code, Person, Address, Job) VALUES (2, 'JONES', TAddress('USA', 'New York', 'Street', 418, '09-AUG-2017 2:00:00 PM -04:00'), 'MANAGER');
And use the following code:

Code: Select all

OracleConnection connection = new OracleConnection("your connection string");
OracleCommand command = new OracleCommand("SELECT * FROM EmpObject", connection);
connection.Open();
OracleDataReader dataReader = command.ExecuteReader();
int index = dataReader.GetOrdinal("Address");
while (dataReader.Read())
{
    OracleObject oraObj = dataReader.GetOracleObject(index);
    if (!oraObj.IsNull)
    {
        string country = (string)oraObj["Country"];
        string city = (string)oraObj["City"];
        string street = (string)oraObj["Street"];
        decimal Apartment = (decimal)oraObj["Apartment"];
        Console.WriteLine(oraObj["offset"].GetType()); //System.DateTime
        OracleTimeStamp offset = (OracleTimeStamp)oraObj.GetOracleValue("offset");
        Console.WriteLine(offset.TimeZoneOffset);
    }
}
connection.Close();
by Pinturiccio
Mon 06 May 2019 12:46
Forum: dotConnect for Oracle
Topic: Preceding semicolon corrupts SQL script
Replies: 5
Views: 1365

Re: Preceding semicolon corrupts SQL script

We have fixed the bug with processing line breaks by OracleScript, when a script contains lines of only a semicolon character. We will post here when the corresponding build of dotConnect for Oracle is available for download.
by Pinturiccio
Fri 03 May 2019 14:06
Forum: dotConnect for Oracle
Topic: How to read DateTimeOffset from OracleObject
Replies: 13
Views: 9653

Re: How to read DateTimeOffset from OracleObject

We have reproduced the issue when the object field of the Oracle type TIMESTAMP(6) WITH TIME ZONE returns as System.DateTime. We will investigate the possibility to return value of the OracleTimeStamp type for the TIMESTAMP(6) WITH TIME ZONE values from OracleObject instead of System.DateTime and post here when we get any results.
by Pinturiccio
Fri 26 Apr 2019 11:26
Forum: dotConnect for Oracle
Topic: Migration Wizard problems
Replies: 14
Views: 2854

Re: Migration Wizard problems

We have fixed the bug with executing OracleCommand, having CommandType.StoredProcedure, when its CommandText contains a colon, which does not denote a stored procedure overload number. We will post here when the corresponding build of dotConnect for Oracle is available for download.
by Pinturiccio
Thu 25 Apr 2019 15:33
Forum: dotConnect for Oracle
Topic: Migration Wizard problems
Replies: 14
Views: 2854

Re: Migration Wizard problems

We have reproduced the issue. We will investigate it and post here about the results as soon as possible.
by Pinturiccio
Thu 25 Apr 2019 15:33
Forum: Excel Add-ins
Topic: Insert new rows with a Excel column with Date format
Replies: 1
Views: 8640

Re: Insert new rows with a Excel column with Date format

This is Excel's behaviour. You can reproduce it without Devart Excel Add-in.
1. Start Excel without using Devart Excel Add-in for SQL Server.
2. Copy 2019-04-01 to any cell.
3. Change the format of this cell to general.

Excel will change this value. Thus, when you insert a date value into a cell with the general format, then this value will be converted to a number which is the number of days starting from January 1, 1900. For example the value 12003 corresponds to date 10-11-1932. When you paste a date value to a cell with the general format, it is converted to a number, and when you insert a number to a cell with the date format, this value is converted to the corresponding date.
by Pinturiccio
Thu 25 Apr 2019 15:32
Forum: Excel Add-ins
Topic: Instructions for inserting more than 1 line at a time.
Replies: 1
Views: 7768

Re: Instructions for inserting more than 1 line at a time.

You can copy and paste several records in a time:
1. After you have imported data, on the Devart tab, in the Edit Session group, click "Edit Mode".
2. The bottom row is highlighted in green. Enter a new record in it. The next line becomes green and you can enter a new record. You can also copy and paste one or more records into the green row. If the pasted data has the same structure (same columns in the same order) as the structure of the imported table in Excel, new records will be added and marked as new rows.
by Pinturiccio
Wed 24 Apr 2019 13:40
Forum: dotConnect for Oracle
Topic: Preceding semicolon corrupts SQL script
Replies: 5
Views: 1365

Re: Preceding semicolon corrupts SQL script

We have reproduced the issue. We will investigate it and post here about the results as soon as possible.
by Pinturiccio
Tue 23 Apr 2019 15:42
Forum: SSIS Data Flow Components
Topic: PostgreSQL Destination Components
Replies: 2
Views: 5479

Re: PostgreSQL Destination Components

This is the designed behaviour. We do not allow adding or removing output columns. And we do not provide the possibility to return any other column than primary key. If you do not connect destination output with any other component down the flow, then primary key column values are not returned, and they don't take space in the buffer.