<?xml version="1.0" encoding="ISO-8859-1"?>
<AiolosSQLImportFractions>
Anslutning till databasen
<Connect>
Data Source="C:\protransfer\projects\Aiolos5\Protocols\Fraction\fourrowsabstest.mdb"
</Connect>
Fråga att ställa mot databasen.
<SQL>
SELECT mid(Name,6,3), '1234' as Bal , '5678' as lev, period, value, mid(Name,10,30) as ordning from frac order by mid(Name,6,3), mid(Name,10,10)
</SQL>
<RSType>
FourRowsAbsolute
</RSType>
Provider mot SQL Server: SQLOLEDB
<Provider>
Microsoft.Jet.OLEDB.4.0
</Provider>
<DateFormat>
YYYYMM
</DateFormat>
</AiolosSQLImportFractions>
Mot en tabell som ser ut så här;
frac | |||
ID |
Name |
period |
value |
1 |
A-SK-GBG-B-KWH-LÅGL-PREL |
2007-02-01 |
123 |
2 |
A-SK-GBG-B-KWH-HÖGL-PREL |
2007-02-01 |
222 |
3 |
A-SK-GBG-KWH-HÖGL-PREL |
2007-02-01 |
1000 |
4 |
A-SK-GBG-KWH-LÅGL-PREL |
2007-02-01 |
2000 |
5 |
A-SK_MDL-B-KWH-HÖGL-PREL |
2007-02-01 |
111 |
6 |
A-SK_MDL-B-KWH-LÅGL-PREL |
2007-02-01 |
112 |
7 |
A-SK-MDL-KWH-HÖGL-PREL |
2007-02-01 |
1111 |
8 |
A-SK-MDL-KWH-LÅGL-PREL |
2007-02-01 |
2222 |
9 |
A-SK_HOG-B-KWH-HÖGL-PREL |
2007-02-01 |
111 |
10 |
A-SK_HOG-B-KWH-LÅGL-PREL |
2007-02-01 |
112 |