Mark
Wed Oct 05 15:56:25 CDT 2005
The support of the individual schemas is native OLE DB provider dependent.
The SQLOLEDB provider does support the Procedures schema table.
--
This posting is provided "AS IS", with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
"Trainee" <trniac@honeywell.com> wrote in message
news:%23j$a1DMyFHA.1132@TK2MSFTNGP10.phx.gbl...
> hi ashton i am using an oledb provider to connect to any database such as
> sql server or oracle so i need a generic way to list the procedures and
> functions but what u suggested works well for oracle alone sql does not
> support this method????
>
> "Mark Ashton" <markash@online.microsoft.com> wrote in message
> news:uEwW7nIyFHA.3236@TK2MSFTNGP14.phx.gbl...
>> Its lame, but the fourth parameter is expecting a Int16 not an Int32.
>>
>> OleDbGuid.Procedures,new object[]{null,null,null,(short)2}
>>
>>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/oledb/htm/oledbprocedures_rowset.asp
>>
>> --
>> This posting is provided "AS IS", with no warranties, and confers no
> rights.
>> Please do not send email directly to this alias. This alias is for
> newsgroup
>> purposes only.
>>
>> "Trainee" <trniac@honeywell.com> wrote in message
>> news:e4gSSmCxFHA.2960@tk2msftngp13.phx.gbl...
>> > can't we specify this procedure_type value in the restriction array.
>> > eg
>> > OleDbGuid.Procedures,new object[]{null,null,null,2}
>> >
>> > where 2 is the procedure_type value for procedures
>> >
>> > but if i put it this way it throws error saying parameter incorrect
>> >
>> > why?????
>> >
>> >
>> > "Kalpesh" <shahkalpesh@gmail.com> wrote in message
>> > news:1127909276.746594.128380@z14g2000cwz.googlegroups.com...
>> >>
>> >> Hi,
>> >>
>> >> You can create a dataview by applying filter on the resultant
>> >> datatable
>> >> to seperate functions & proedures
>> >>
>> >> eg.
>> >>
>> >> myTable.DefaultView.RowFilter = "PROCEDURE_TYPE = " & DB_PT_PROCEDURE;
>> >>
>> >> DB_PT_UNKNOWN = 1
>> >> DB_PT_PROCEDURE = 2
>> >> DB_PT_FUNCTION = 3
>> >>
>> >> HTH
>> >> Kalpesh
>> >>
>> >
>> >
>>
>>
>
>