Autor Beitrag
hermannhass
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25

win2000

BeitragVerfasst: Mo 04.12.06 19:39 
Hallo
ich komme einfach nicht weiter.
Möchte unter Delphi mit MS-Server (oder auch mySQL) eine einfache Exceldatei erzeugen.
Habe eine Datenbank 'kunden' im sql geöffnet und möchste diese
als Sheet in eine neu(oder vorhandene) Exceldatei exportieren.
Ich habe versch. Syntaxen mit select * INTO ... IN ... ohne "IN" probiert.
schaffe es einfach nicht!
Mein Befehle:
Select * INTO ['c:\xxx.xls' 'Excel 8.0;'].[sheet1] FROM Kunden
Select * INTO [c:\xxx.xls 'Excel 8.0;'].[sheet1] FROM Kunden
Select * INTO [c:\xxx.xls Excel 8.0;].[sheet1] FROM Kunden
Select * INTO sheet1 IN 'c:\xxx.xls' 'Excel 8.0;' FROM Kunden
Select * INTO sheet1 IN 'c:\xxx.xls Excel 8.0;' FROM Kunden
und diverse Möglichkeiten mit und ohne Apostroph
Nichts klappt, oder mache ich einen Denkfehler?
Vielen Dank
cartridge
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 209

Win XP
D4 Prof,D6 Prof
BeitragVerfasst: Di 05.12.06 10:25 
Hallo!

Nimm mal
ausblenden SQL-Anweisung
1:
SELECT * INTO NeueDatenbank IN 'C:\' "Excel 7.0"					

wobei Du mit den Anführungszeichen experimentieren wusst.
Für c:\ ist natürlich das richtige Verzeichnis zu wählen!

Gruß Ingo
hermannhass Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25

win2000

BeitragVerfasst: Di 05.12.06 13:13 
Danke...
Und wie wähle ich die Arbeitsmappe/Sheet?
cartridge
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 209

Win XP
D4 Prof,D6 Prof
BeitragVerfasst: Fr 08.12.06 08:57 
Da gibt es imho keine Möglichkeit, es sei denn man kann eine Procedure zum Verarbeiten von VBA- Befehlen deklarieren; aber frag mich nicht nach VBA...

Gruß Ingo
NTM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 120

Win XP
2005 Prof
BeitragVerfasst: Fr 08.12.06 09:46 
Vielleicht hilf dir das www.dsdt.info/tipps/?id=605
es wird zwar nicht dein Problem lösen aber vielleicht hilft es dir trotzdem.