MSLoader - LoadFromDataSet
Posted: Wed 26 Sep 2007 20:04
Hi Guys,
I'm trying to load a xml file to VirtualTable, and use MSLoader and LoadFromDataset Method to copy data to physical table.
Below my code:
MSConnection.ConnectString := 'Provider=MICROSOFT.SQLSERVER.MOBILE.OLEDB.3.0;Data Source=""';
MSConnection.Database := 'MediaControl.sdf';
MSConnection.Open;
VirtualTable1.LoadFromFile('c:\audiomedia\small-teste.XML');
MSLoader1.Connection := MSConnection;
MSLoader1.TableName := 'MediaTable';
MSLoader1.LoadFromDataSet(VirtualTable1);
When I execute the "LoadFromDataSet" Method I get the message: "No such interface supported".
What does it mean? I'm doing anything wrong?
Thanks
Gustavo
I'm trying to load a xml file to VirtualTable, and use MSLoader and LoadFromDataset Method to copy data to physical table.
Below my code:
MSConnection.ConnectString := 'Provider=MICROSOFT.SQLSERVER.MOBILE.OLEDB.3.0;Data Source=""';
MSConnection.Database := 'MediaControl.sdf';
MSConnection.Open;
VirtualTable1.LoadFromFile('c:\audiomedia\small-teste.XML');
MSLoader1.Connection := MSConnection;
MSLoader1.TableName := 'MediaTable';
MSLoader1.LoadFromDataSet(VirtualTable1);
When I execute the "LoadFromDataSet" Method I get the message: "No such interface supported".
What does it mean? I'm doing anything wrong?
Thanks
Gustavo