Click here to Skip to main content
15,886,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: Pie / Bar / Line Charts Pin
Christian Graus29-Oct-02 15:34
protectorChristian Graus29-Oct-02 15:34 
GeneralDeterming SQL Server Type from C# Pin
perlmunger29-Oct-02 9:28
perlmunger29-Oct-02 9:28 
GeneralRe: Determing SQL Server Type from C# Pin
leppie29-Oct-02 10:23
leppie29-Oct-02 10:23 
GeneralRe: Determing SQL Server Type from C# Pin
perlmunger29-Oct-02 10:54
perlmunger29-Oct-02 10:54 
GeneralRe: Determing SQL Server Type from C# Pin
leppie29-Oct-02 11:05
leppie29-Oct-02 11:05 
GeneralRe: Determing SQL Server Type from C# Pin
perlmunger29-Oct-02 11:11
perlmunger29-Oct-02 11:11 
GeneralRe: Determing SQL Server Type from C# Pin
leppie29-Oct-02 11:39
leppie29-Oct-02 11:39 
GeneralRe: Determing SQL Server Type from C# Pin
Stephane Rodriguez.29-Oct-02 18:36
Stephane Rodriguez.29-Oct-02 18:36 
I would avoid to use the dataset because at this point they have already done some type mapping (either CTS, or XSD).

Here is the code for retrieving the internal SQL Server data type for any database table columns :

DataTable oTable = new DataTable();
SqlDataAdapter oAdapter = new SqlDataAdapter("SELECT * FROM INFORMATION_SCHEMA.COLUMNS", m_oConnection);

This stores the result of the system query in oTable. Then you just need to lookup the rows of this table. Interesting columns are of course "COLUMN_NAME" and "DATA_TYPE".

If you have SQLServer installed, I guess this kind of things should be known by you a million times already, because you can see these things in the SQL Enterprise manager GUI.




How low can you go ?
(MS rant)

GeneralRe: Determing SQL Server Type from C# Pin
perlmunger30-Oct-02 9:07
perlmunger30-Oct-02 9:07 
GeneralPass By Reference Problem Pin
perlmunger29-Oct-02 6:34
perlmunger29-Oct-02 6:34 
GeneralRe: Pass By Reference Problem Pin
Daniel Turini29-Oct-02 6:40
Daniel Turini29-Oct-02 6:40 
GeneralRe: Pass By Reference Problem Pin
perlmunger29-Oct-02 6:51
perlmunger29-Oct-02 6:51 
GeneralRe: Pass By Reference Problem Pin
leppie29-Oct-02 7:42
leppie29-Oct-02 7:42 
GeneralRe: Pass By Reference Problem Pin
perlmunger29-Oct-02 9:18
perlmunger29-Oct-02 9:18 
GeneralRe: Pass By Reference Problem Pin
LongRange.Shooter29-Oct-02 8:42
LongRange.Shooter29-Oct-02 8:42 
GeneralRe: Pass By Reference Problem Pin
perlmunger29-Oct-02 9:20
perlmunger29-Oct-02 9:20 
GeneralRe: Pass By Reference Problem Pin
Paul Ingles29-Oct-02 14:40
Paul Ingles29-Oct-02 14:40 
GeneralFloat divisoin Pin
Mazdak29-Oct-02 1:08
Mazdak29-Oct-02 1:08 
GeneralRe: Float divisoin Pin
Pete Bassett29-Oct-02 1:20
Pete Bassett29-Oct-02 1:20 
GeneralRe: Float divisoin Pin
Nick Parker29-Oct-02 1:21
protectorNick Parker29-Oct-02 1:21 
GeneralRe: Float divisoin Pin
Mazdak29-Oct-02 4:03
Mazdak29-Oct-02 4:03 
GeneralDrag and Drop Pin
Buddhi28-Oct-02 23:36
Buddhi28-Oct-02 23:36 
QuestionHow to count event subscriptions Pin
BigAndy28-Oct-02 23:11
BigAndy28-Oct-02 23:11 
AnswerRe: How to count event subscriptions Pin
Stephane Rodriguez.29-Oct-02 0:04
Stephane Rodriguez.29-Oct-02 0:04 
GeneralRe: How to count event subscriptions Pin
BigAndy29-Oct-02 1:28
BigAndy29-Oct-02 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.