sorry, wrong language

english translation at the end of text.
hallo,
ich habe vor eine routine zu schreiben um die feldnamen aus verschiedenen tabellen auszulesen. das soll unabhängig von der datenbank und tabelle sein.
dazu wollte ich mir einen recordset mit einer zeile füllen, den durchlaufen und die feldnamen auslesen. das klappt bisher auch hervorranden aber jetzt kommt das problem.
wenn ich ein "select * from TblName" mache, dauert die antwort unter umständen sehr lange, weil die datenbank sehr voll sein könnte.
ich möchte jetzt nur einen oder von mir aus eine handvoll records zurückbekommen, da mich der inhalt nicht interessiert, sondern nur die feldnamen.
da ich nicht weiss welche tabelle abgefragt wird, kann ich kein "select * where id = (select max(id))" oder sowas machen. weil ich nicht weiss welcher datenbanktyp benutzt wird, kann ich kein top, limit oder head einsetzten.
mein letzter strohhalm wäre eine abfrage welcher db typ eingesetzt wird und danach branchen um dann doch dbserver abhängig ein top oder limit einzusetzen.
mir wäre eine standard-sql lösung, die ohne branch auskommt aber die liebste.
hello,
I am looking for a way to select only one record from a table. I want to write a function, that gets the fieldnames from a database table, independent what database is used. I can not use top, limit or head or something like that, because I can not find out what database type is used. I can not use "select * where ID=(select max(ID))" because I dont know if subselects are allowed and if there is a field named ID in the table in question.
My last hope would be to put the type of database in the functions parameterlist and branch insinde of my function, so I can use top, limit, show fieldnames or anything like that. I'd rather a standard-sql solution to be absolutly independt of the used database.