Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mi 07.12.05 10:00 
Hallo,
ich möchte per sql rausfinden wie lang eine Spalte vom Typ Char ist.
Kann mir jemand mit der SQL helfen?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mi 07.12.05 10:06 
Wüsste nicht, dass das per SQL geht. Die Länge steht doch in der Definition drin, wieso schaust du da nicht nach?

_________________
Bravery calls my name in the sound of the wind in the night...
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mi 07.12.05 10:36 
Hallo,

@moloch: Welche DB?

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mi 07.12.05 11:06 
es geht um mssql-db
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mi 07.12.05 15:29 
Hallo,

sorry, da kann ich Dir leider nicht weiterhelfen, da ich keine MSSQL-DB im Einsatz habe.

Eine Möglichkeit die Spaltengröße herauszufinden ist, mit "Describe Tabellenname" die Eigenschaften der Tabelle anzeigen zu lassen und aus der Ergebnismenge den entsprechenden Feldnamen herraussuchen.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)