How to GetOleDbSchemaTable with MSIDXS OLE DB provider ?

C

cosmos

Hello,

I am using Microsoft Indexing Server, and it seems that ADO.NET OLEDB
Connection object doesn't support the GetOleDbSchemaTable method with MSIDXS
OLE DB provider.

I get the following errors:

IDBSchemaRowset interface is not supported by the 'MSIDXS' provider. is
unavailable with the current provider.

Could somebody help me to resolve this problem ?

The C# source code is following:

<%@ page language="c#" Debug="true" %>
<%@ Import Namespace = "System.Data.OleDb" %>
<%@ Import Namespace = "System.Data" %>
<%

OleDbConnection odbSearch = new OleDbConnection();

OleDbCommand cmdSearch = new OleDbCommand();

odbSearch.ConnectionString = "Provider=\"MSIDXS\";Data
Source=\"localhost\";";

cmdSearch.Connection = odbSearch;

odbSearch.Open();

DataTable schemaTable =
odbSearch.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] {null,
null, null, "TABLE"} );

odbSearch.Close();

%>
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top