Re: Syntax Problem in Code using SCOPE() function
From: Chris R. Timmons (crtimmons_at_X_NOSPAM_Xcrtimmonsinc.com)
Date: 12/29/04
- Next message: Job Lot: "RE: Error: workgroup information file missing???"
- Previous message: Bishoy Ghaly: "Re: Record voice via .NET"
- In reply to: Umpty: "Syntax Problem in Code using SCOPE() function"
- Next in thread: Umpty: "Re: Syntax Problem in Code using SCOPE() function"
- Reply: Umpty: "Re: Syntax Problem in Code using SCOPE() function"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Dec 2004 19:59:19 -0800
"=?Utf-8?B?VW1wdHk=?=" <Umpty@discussions.microsoft.com> wrote in
news:69F3EFF5-2F98-40A1-835B-738DD7821B1A@microsoft.com:
> Trying to use Microsoft Indexing Service.
>
> Here is my code using SQL Query Analyzer, which works perfectly.
>
> SELECT * FROM
> OPENQUERY(FileSystem,
> 'SELECT RANK, FileName, Characterization
> FROM SCOPE(''"/ASPNetDemo/Resumes"'')
> WHERE FREETEXT(''Baione'') > 0
> ORDER BY RANK DESC' )
>
> <code snipped>
>
> conMyData = New
> SqlClient.SqlConnection("Server=Localhost;UID=sa;PWD=test;Databas
> e=Pubs")
> strSearch = "SELECT * FROM " & _
> "OPENQUERY(FileSystem, " & _
> "'SELECT RANK, FileName, VPath, Characterization " & _
> "FROM SCOPE(''" & "\ASPNetDemo\Resumes" & "'') " & _
> "WHERE FREETEXT(''" & txtSearchPhrase.Text & _
> "'') > 0 " & _
> "ORDER BY RANK DESC' )"
Umpty,
You have different slash characters in the VB code. I believe the /
character is required, not the \ character.
-- Hope this helps. Chris. ------------- C.R. Timmons Consulting, Inc. http://www.crtimmonsinc.com/
- Next message: Job Lot: "RE: Error: workgroup information file missing???"
- Previous message: Bishoy Ghaly: "Re: Record voice via .NET"
- In reply to: Umpty: "Syntax Problem in Code using SCOPE() function"
- Next in thread: Umpty: "Re: Syntax Problem in Code using SCOPE() function"
- Reply: Umpty: "Re: Syntax Problem in Code using SCOPE() function"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|