Using GetOleDbSchemaTable to get SQL Server Field Description - using

P

pete

Hi All,

I am trying to get the field desriptions from SQL Server
2000 using GetOleDbSchemaTable (see code below)
Now this returns a description field to the DataTable, but
the field is empty. I know my fields have descrptions
assigned to them. Has anyone seen this before, is it a bug
in ASP.NET. or am I missing something?

I am using win2000 server / IIS5 / .NET v1.0.3705 /
SQLServer2000.


Dim strTableName As String = "MyTable"
Dim myConn As OleDBConnection = New OleDBConnection
(ConfigurationSettings.AppSettings("strMyConnString"))
myConn.Open()
Dim schemaTable As DataTable = myConn.GetOleDbSchemaTable
(OleDbSchemaGuid.Columns, New Object() {Nothing, Nothing,
strTableName, Nothing})

myDataGrid1.DataSource = schemaTable

myDataGrid1.DataBind()
 
J

Jon Yates

Pete,

I have just tried this using C# and Oracle and I also
didn't get any comments brought back.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top