in

ASP.NET Weblogs

Sijin Joseph's blog

My experiences with .Net

Equivalent of sys* tables of SQL Server in Access

When working with SQL Server it is easy to get access to database metadata like tables, stored procedures etc, by using the sys* tables. I was doing some work with Access and wanted to do something similar, turns out that it is quite easy to do.

Basically the OleDbCommand.GetOleDbSchemaTable() method allows you to get as much metadata you want about the DB.

Pretty obscure but a God send when you really need it :)
Published May 03 2005, 03:18 PM by Sijin Joseph
Filed under:

Comments

 

Greg said:

Very cool. And great timing... I was JUST about to have to do this very thing (query a MDB for tables/etc) today or tomorrow.

Thanks for posting it!
May 3, 2005 1:10 PM
 

Javier Luna said:

I believe that any DataLayer must be a simple code block, that they allow operations against DB.

That code block would not have to know on the Business Entities. Single to specialize it is to execute the operations (Store Procedures and SQL Sentences) against the engine DB (SQL, Oracle, DB2, etc.), with which this setting.

Finally, I invite to you to download the DataLayer.Primitives Public Version.

This is very cool Data Layer :)

DataLayer.Primitives - Readme!
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=1389

Cheers,

Javier Luna
http://guydotnetxmlwebservices.blogspot.com/
May 26, 2005 11:30 PM

Leave a Comment

(required)  
(optional)
(required)  
Add