Exempel, två records och i absoluta tal

<?xml version="1.0" encoding="ISO-8859-1"?>

<AiolosSQLImportFractions>

 

    Anslutning till databasen

   <Connect>

      Driver={Microsoft Excel Driver (*.xls)};dbq=C:\aiolos\TestImport\db.xls

   </Connect>

 

    Fråga att ställa mot databasen.

   <SQL>

      select Omr, balance, supplier, mån, egen, total, typ from [Andelstal$] order by Omr ASC, balance ASC, supplier ASC, typ ASC

   </SQL>

 

    <RSType>

        TwoRowsAbsolute

    </RSType>

 

    Provider mot SQL Server: SQLOLEDB

    <Provider>

        MSDASQL

    </Provider>

 

</AiolosSQLImportFractions>

 

Databasen ser i detta fall ut så här;

Balance

Supplier

Omr

Typ

egen

total

mån

BAL1

SUP1

101

H

123

1234

2007-01-01

BAL1

SUP1

101

l

111

1111

2007-01-01

BAL1

SUP1

102

h

234

2345

2007-01-01

BAL1

SUP1

102

l

222

2222

2007-01-01

BAL1

SUP3

101

h

345

3456

2007-01-01

BAL1

SUP3

101

l

333

3333

2007-01-01