E
eaguilar
Hello,
I'm trying to get column information directly by querying the tables on a
SQL Server DB and asking for name, uniqueness, DataType, etc. I'm using a
DataColumn object, called myDataColumn, and then I ask for:
myDataColumn.ColumnName
myDataColumn.DataType
myDataColumn.Unique
etc.
The problem is I'm getting .NET data types, instead of SQL data types, which
is too generic for what I need.
For instance, if a column is of nvarchar(50) type in sql server, my app in
c# reports it as being simply String.
Can anyone help me trying to get full SQL data type info from an app in c#?
Many thanks in advance.
I'm trying to get column information directly by querying the tables on a
SQL Server DB and asking for name, uniqueness, DataType, etc. I'm using a
DataColumn object, called myDataColumn, and then I ask for:
myDataColumn.ColumnName
myDataColumn.DataType
myDataColumn.Unique
etc.
The problem is I'm getting .NET data types, instead of SQL data types, which
is too generic for what I need.
For instance, if a column is of nvarchar(50) type in sql server, my app in
c# reports it as being simply String.
Can anyone help me trying to get full SQL data type info from an app in c#?
Many thanks in advance.