Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

andregroen
New Contributor

Error OLE DB Connect

Hi

For a client I am trying to connect to an .sdf file (SQL server compact). It's working except for fields with numeric values. Integer, text and date fields are working fine. The following script is an brief example based on northwind.sdf (see attached file). The OLE DB msi is also attached (needs to be installed before Reloading the script).

OLEDB CONNECT32 TO [Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=Northwind.sdf]

;

LOAD *;

SQL SELECT

          Freight

FROM Orders;

// Freight is a numeric field, other fields are working fine

After Reload the next error message appears:

ErrorMessage.PNG

Probably it has something to do with numeric settings? Changing the country settings of my PC or switching te comma and point within the set ThousandSep and DecimalSep didn't help so far.

Anyone? Thanks in advance.

Andre

1 Solution

Accepted Solutions
etl_tools
Contributor

Re: Error OLE DB Connect

That is a probably a dull sulution but it did work for me ;-)

OLEDB CONNECT32 TO [Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=Northwind.sdf];

 

LOAD *;

SQL SELECT

         LOWER(Freight) as Freight

FROM Orders;

As alternative you can try our QlikView connector which support SQL Server compact as well (27 data sources in total)

http://www.etl-tools.com/etl-tools/qlikview-connector/overview.html

Mike

2 Replies
etl_tools
Contributor

Re: Error OLE DB Connect

That is a probably a dull sulution but it did work for me ;-)

OLEDB CONNECT32 TO [Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=Northwind.sdf];

 

LOAD *;

SQL SELECT

         LOWER(Freight) as Freight

FROM Orders;

As alternative you can try our QlikView connector which support SQL Server compact as well (27 data sources in total)

http://www.etl-tools.com/etl-tools/qlikview-connector/overview.html

Mike

andregroen
New Contributor

Re: Error OLE DB Connect

Works like a charm, thanks Mike! I'll keep the Qlikview connector in mind.

Community Browser