Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Could not execute query against OLE DB provider 'MSIDXS' Error

Reply
Thread Tools

Re: Could not execute query against OLE DB provider 'MSIDXS' Error

 
 
savvy
Guest
Posts: n/a
 
      01-24-2006
I have created a stored procedure for searching particular keywords in
a MS Word or
PDF docs using Index Server and processes the results through the SQL
Server.
So, it links both Index Server and SQL Server
When I execute this stored proc from my ASP.NET page i'm getting this
error.
Could not execute query against OLE DB provider 'MSIDXS'
My Sql Connection object in my .net page is
SqlConnection objConn = new
SqlConnection("Server=MISC\\MISC;Database=sapresou rces;User
ID=sap;Password=sapres;");
I tried different ways but not able to understand where the problem is
but It works fine when i execute in my Query Analyzer using
Exec SelectIndexServerCVpaths
@searchstring='mykeyword'

Can anybody help ?
Thanks in Advance

CREATE PROCEDURE SelectIndexServerCVpaths
(
@searchstring varchar(100)
)
AS
SET @searchstring = REPLACE( @searchstring, '''', '''''' )
DROP VIEW sapresources.FileSearchResults
EXEC ('CREATE VIEW sapresources.FileSearchResults AS SELECT * FROM
OPENQUERY(FileSystem,''SELECT Directory, FileName,
DocAuthor, Size, Create, Write, Path FROM
SCOPE('''' "c:\inetpub\wwwroot\sap-resources\Uploads" '''') WHERE
FREETEXT(''''' + @searchstring + ''''')'')')
SELECT * FROM CVdetails C, sapresources.FileSearchResults F WHERE
C.CV_Path = F.PATH AND C.DefaultID=1
GO

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ole ole Patrick.O.Ige ASP .Net 0 07-16-2006 08:10 AM
Creating an OLE server document in Python (MFC/OLE/COM/Python newbie) Drew Pihera Python 0 02-04-2004 07:48 PM
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) error BrianS ASP General 7 01-08-2004 11:03 PM
Win32::OLE adding shape to OLE Object (xlsheet) in PPT Lance Hoffmeyer Perl Misc 0 11-17-2003 07:44 PM
Microsoft OLE DB Provider for ODBC Drivers error '80004005' Error paul tomlinson ASP General 2 07-01-2003 02:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57