× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I would assume all DB2 restriction values would work, wherever those are
referenced.

Can you use Reflector to open up DB2MetaDataCollectionNames.Restrictions
from the DB2 .NET Data Provider? What does it list?

http://msdn.microsoft.com/en-us/library/ms254934%28VS.80%29.aspx

-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx
[mailto:systemidotnet-bounces@xxxxxxxxxxxx] On Behalf Of John Taylor
Sent: Thursday, January 14, 2010 6:50 PM
To: '.net use with the System i'
Subject: Re: [SystemiDotNet] .NET Provider Meta Data GetSchema()


-----Original Message-----
From: systemidotnet-bounces@xxxxxxxxxxxx [mailto:systemidotnet-
bounces@xxxxxxxxxxxx] On Behalf Of Craig Pelkie



http://msdn.microsoft.com/en-us/library/y53he2tz.aspx


Thanks, but that doesn't tell me anything about what the list of
qualifiers
is for the restrictions as implemented by the iDB2 provider. For
example,
the following couple were easy to figure out via educated guesses:

DataTable tbls
String[] tblsFilter = new string[] {"LIBNAME"}

DataTable cols;
String[] colsFilter = new string[] {"LIBNAME", "TABLENAME"}

Using (iDB2Connection cn = new iDB2Connection("MyConnString"))
{
cn.Open();
tbls = cn.GetSchema(iDB2MetaDataCollectionNames.Tables, tblsFilter);
cols = cn.GetSchema(iDB2MetaDataCollectionNames.Columns,
colsFilter);
cn.Close();
}

So there are some obvious choices, but I'd like to know what filtering
options I might be missing. The .NET driver for DB2 v9.x on Win/Nix
provides
a specific collection (iDB2MetaDataCollectionNames.Restrictions) that
can be
examined for the list of qualifiers, but the iDB2 driver does not
implement
that collection.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.