Autor Beitrag
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Do 04.08.05 14:56 
Ohne das Query1.SQL.Clear usw.
Einfach NUR das SQL-Statement

_________________
Bravery calls my name in the sound of the wind in the night...
ialla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Do 04.08.05 14:57 
juhu das geht :D
danke Leute, aber nach euren Annahmen, geh ich mal davon aus, dass ihr es komplett anders lösen würdet...Wie? zur Laufzeit, ok. Aber wo genau würde ich die SQL Statements aufrufen?
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 04.08.05 15:01 
Das ist kaum zu beantworten.
Aber zum Beispiel, wenn du ein Fenster mit der Artikel-Übersicht aufrufst?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Do 04.08.05 15:01 
Du hast ja da deine 3 Zeilen Code. Pack doch die einfach mal ins FormShow des Formulars und lass das Active-Property im Objektinspektor in Ruhe.

_________________
Bravery calls my name in the sound of the wind in the night...
ialla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Do 04.08.05 15:07 
Alles klar, danke :D
ialla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Do 04.08.05 15:10 
sorry, noch ein kleines Problem: sobald ich "LIMIT" in meinem SQL Statement verwende, krieg ich nen Fehler.

Zitat:

SELECT * FROM Artikel ORDER BY id LIMIT 0,10


ungültiges Schlüsselwort kommt dann wieder.
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Do 04.08.05 15:16 
Paradox kennt kein LIMIT, afair.
ialla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Do 04.08.05 15:16 
:shock: :shock: :shock:
Ausweichmöglichkeit?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Do 04.08.05 15:25 
Was anderes als Paradox nehmen :)

Keine Ahnung, in Oracle gibts z.B. eine RowId, mit der man einschränken kann. Gibts zu Paradox ne Hilfe, wo sowas drinstehen kann?

_________________
Bravery calls my name in the sound of the wind in the night...
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Do 04.08.05 15:36 
user profile iconnoidic hat folgendes geschrieben:
Was anderes als Paradox nehmen :)


Und was anderes als die BDE dann auch gleich, bitte :?

Zitat:
Gibts zu Paradox ne Hilfe, wo sowas drinstehen kann?


localsql.hlp
ialla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Do 04.08.05 16:11 
:?
ich sagt beide "was anderes"...was denn? :-)
am besten etwas, was sehr ähnlich zu bedienen ist, weils im Endeffekt ja doch realtiv leicht ging
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Do 04.08.05 16:26 
Ohne Kosten? Meine Empfehlung: (Embedded) Firebird.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 04.08.05 17:36 
Alles eine Frage deines Kenntnisstands.
Mindestvoraussetzung für eine richtige Datenbank:
- Delphi beherrschen
- SQL-Grundlagen beherrschen
- Wissen, was eine Datenbank ist
- TTable als Blödsinn verdammen
Bis du soweit bist, kannst du ruhig mit Paradox und BDE rumspielen.
Danach würde ich auch Firebird empfehlen.
ialla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Mo 08.08.05 10:40 
wie kann ich denn ein Limit für die Paradox Datenbank realisieren? Ich will, dass nur die 10 letzten Zeilen ausgegeben werden :cry:
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Di 09.08.05 13:53 
Na, alle Daten laden, am besten mit ADO, dann kann man gleich sortieren. Anschließend mit einem OnFilterRecord sicherstellen, das nur die letzten 10 Zeilen angezeigt werden. Oder nur die letzten 10 Zeilen in ein TDataSet (z.B. TADOTable) kopieren und das dann anzeigen lassen.
ialla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Di 09.08.05 13:59 
user profile iconalzaimar hat folgendes geschrieben:
Na, alle Daten laden, am besten mit ADO, dann kann man gleich sortieren.


weiss nicht wie das geht :(
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Fr 12.08.05 13:17 
TADODataset oder so auf die Form schmeissen.
Doppelklick auf ConnectionString und so durchhangeln, bis die Verbindung steht
Dann die Tabelle ansprechen über die Commandtext-Property
Active = True und schwupps sind die Daten drin.
Filtered auf True setzen und einen OnFilterRecord schreiben, der die letzten / ersten 10 records zulässt.