Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting from Java to C# problem.. Pin
Christian Graus29-Oct-02 15:28
protectorChristian Graus29-Oct-02 15:28 
GeneralRe: Converting from Java to C# problem.. Pin
Ed K29-Oct-02 16:41
Ed K29-Oct-02 16:41 
GeneralRe: Converting from Java to C# problem.. Pin
leppie31-Oct-02 6:09
leppie31-Oct-02 6:09 
GeneralRe: Converting from Java to C# problem.. Pin
Stephane Rodriguez.29-Oct-02 19:16
Stephane Rodriguez.29-Oct-02 19:16 
GeneralCreating DB's on the fly!!! Pin
Anonymous29-Oct-02 9:43
Anonymous29-Oct-02 9:43 
GeneralRe: Creating DB's on the fly!!! Pin
leppie29-Oct-02 10:19
leppie29-Oct-02 10:19 
GeneralRe: Creating DB's on the fly!!! Pin
perlmunger29-Oct-02 11:07
perlmunger29-Oct-02 11:07 
GeneralRe: Creating DB's on the fly!!! Pin
Anonymous29-Oct-02 12:13
Anonymous29-Oct-02 12:13 
GeneralRe: Creating DB's on the fly!!! Pin
Anonymous30-Oct-02 11:23
Anonymous30-Oct-02 11:23 
GeneralPie / Bar / Line Charts Pin
Anonymous29-Oct-02 9:40
Anonymous29-Oct-02 9:40 
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 

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.