Re: adVarWChar slower than adVarChar



This isn't going to help solve the problem, but using VC++ and ADO we
recently switched our whole application to Unicode, including converting all
the database tables to Unicode. We did this for both SQL Server and Oracle,
and we cannot detect an appreciable difference in performance.

The application is pretty large (300+ tables). We do bulk data loads through
ADO as well as thousands of dynamic queries etc.

Basically there isn't anything fundamentally wrong with the technology.

Regards
Jeremy

"N. Scheller" <n.scheller@xxxxxxxxxxx> wrote in message
news:O7$4N1qxGHA.4232@xxxxxxxxxxxxxxxxxxxxxxx
Hello Bob,
thanks for your comment. Sure we can build a DTS package for each file to
be
imported for each of our customers. And we surely would find a similar
technology to do this in Oracle. But this would have to be adopted for
each
customer and for each kind of import file, so we are quiet convinced that
the import program we wrote is the best and flexible way (since we have to
check if a record already exists and update it or have to insert the data
if
the record is new) .

So back to my problem: is there any way to speed up the import with
adVarWChar parameters?
Norbert

"Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:%230Xlf2pxGHA.3496@xxxxxxxxxxxxxxxxxxxxxxx
N. Scheller wrote:
Hello experts,

I have some trouble with importing UTF files into a database:
the table in which I want to import the file contains a nvarchar(200)
field on SQL2000 and a nvarchar2 field in our Oracle-DB. We have
written an import program in VB which creates a stored procedure to
which all information from the text file is passed. The parameter for
the mentioned field has the same type as the field in the DB -
nvarchar(200) on MS or nvarchar2 on Ora.

Until last month, the import program used "adVarChar" to pass the
values to the SP:
cmdADO.Parameters.Append .CreateParameter(aColumnName(i),
adVarChar, adParamInput, 200)
Then we changed adVarChar to adVarWChar, since we had to import UTF
files containing special characters:
cmdADO.Parameters.Append .CreateParameter(aColumnName(i),
adVarWChar, adParamInput, 200)

Well, now we get the special characters properly imported into the
table. But the importing time for one file containing some thousand
lines increased from 8 minutes to more than 8 hours!!!
Changing back the parameter type to adVarChar, and we import the same
file in 8 minutes again.

Hmmm, it makes sense that double-width data would take longer to process,
but 8 hours seems a bit extreme ...

Since we have the same odd behavior on MS-SQL and Oracle, I assume
this is an ADO problem.

Any ideas?

Doesn't Oracle have some sort of functionality (analogous to DTS in SQL
Server) to allow data to be bulk-imported? I can't imagine DTS taking as
long as 8 min. for a little thousand-line file. ISTM that ADO is the
wrong
technology to be using for this task.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"






.



Relevant Pages

  • Re: Wrong number or types of arguments calling Oracle Proc from VB6 w/ADO
    ... I've established a connection ok using the OraOLEDB provider ... .Type = adVarChar ... I'm connecting to an Oracle 9i database, using ADO 2.8. ...
    (microsoft.public.vb.database.ado)
  • Re: ADO.NET and ODBC { CALL ..... } Syntax
    ... > Coonecting to Oracle 8i DB running on Unix ... > OleDB connection with provider as MSDAORA. ... > the same way as it works in ADO arena. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ADO.NET and ODBC { CALL ..... } Syntax
    ... > Coonecting to Oracle 8i DB running on Unix ... > OleDB connection with provider as MSDAORA. ... > the same way as it works in ADO arena. ... You should really only do this at design-time, or with a command you will ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Table open times and rowsize discontinuity
    ... some manner related to ADO or the tool you are using. ... Puget Sound Oracle Users Groupwww.psoug.org- Hide quoted text - ... For the array fetching, the only parameter I can find in the ADO ... exceeding the SDU and the MTU. ...
    (comp.databases.oracle.misc)
  • Re: OO4O 2.1 vs MDAC
    ... We're planning to move VB3 using OO4O 2.1 ... Now I must distinguish and list out some of the features that ADO / ... (OLE DB or ODBC) ... Also you don't mention the Oracle version there are differences between ...
    (microsoft.public.data.ado)