Hi Marc,

> But after all I'couldn't make it run that easy:
> 
> ...
> Dim oSourceDesc as Object
> oSourceDesc = createDataAccessDescriptor()
> oSourceDesc.ConnectionResource = 
> "sdbc:file:file:///e:/Daten/Dokumente/OOo_DB/Massendaten/"'datagen7.csv"
> oSourceDesc.CommandType = com.sun.star.sdb.CommandType.TABLE
> 'oSourceDesc.Command = "datagen7"
> oSourceDesc.Command = "datagen7.csv"
> ...

Hmm. In general, don't append the .csv to the ConnectionResource, and
don't append the .csv to the Command.

Other than that: I'd say you need to specify additional settings for the
field delimiter and such. The thread Ariel referred you to should
contain his findings about this.

> I tried that way iterating over some variants and got an
> uno.RuntimeException saying:
> 
> "invalid attempt to assign an empty interface of type
> css.sdbc.XConnection!"

Which means (well, better *indicates* for me knowing the code) that the
flat file driver, instead of complaining about the missing settings,
decided to return a NULL connection. Not really nice.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to