Autor Beitrag
Oliver M.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 109
Erhaltene Danke: 1

Win 8 CP
VS 11 Beta
BeitragVerfasst: Do 28.04.11 13:12 
Hallo,

ich möchte aus einer SqlServerCe-Datenbank (Data.sdf) per C#-Code auslesen, welche Tabellen darin sind und welche Spalten in den jeweiligen Tabellen sind.

Ich hoffe jemand hat eine Idee.

MfG Oliver
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4796
Erhaltene Danke: 1059

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Do 28.04.11 14:11 
Hallo Oliver,

das geht mittels
ausblenden SQL-Anweisung
1:
2:
select * from information_schema.tables;
select * from information_schema.columns;

(ich hoffe mal, du weißt wie man generell in C# auf Datenbanken zugreift?)