OVH Cloud OVH Cloud

linked server pour IndexServeur

3 réponses
Avatar
EliseD
bonjour
je tente de lier SQL serveur avec IndexServeur
(qui sont sur 2 serveurs diff=E9rents : un serveur SQL et=20
mon serveur Web)
J'ai lu qu'il faut cr=E9er un "linked server" en sp=E9cifiant=20
dans les prori=E9t=E9s le catalogue IndexServeur.

J'ai cr=E9e 2 linked server (un en utilisant la procedure=20
stock=E9e sp_addlinkedserver et l'autre par l'interface du=20
Enterprise manager) pour tster les 2 methodes.

J'ai aussi v=E9rifi=E9 que le OLEDB provider pour index=20
Server (MSIDXS - Microsoft OLE DB Provider for Indexing=20
Service) etait bien sur mon Serveur SQL, en executant la=20
requete suivante :=20

use master
go
exec xp_enum_oledb_providers
go

donc ca devrait etre bon
j'ai tent=E9 de regarder le contenu des tables de mon=20
linked server (avec une requete ou dans l'entreprise=20
manager), et tout ce que j'obtiens c'est cette erreur :

Could not execute query against OLE DB provider 'MSIDXS'.=20
[OLE/DB provider returned message: Le service n'est pas=20
en cours d'ex=E9cution. ]

j'ai cherch=E9 sur google sans succes.
Qqun aurait saurait m'expliquer pourquoi j'ai cette=20
erreur ?

Merci d'avance !

3 réponses

Avatar
jeanlm
Bonjour,

Voici un petit example qui fonctionne.

Server1 - SQL 7.0 / SQL 2000
Note: Indexing Service does not need to be started. Just need the MSIDXS
OLEDB
provider for Windows 2000

Server2 - Indexing Service started with a catalog
Note: In this case we use the default WEB catalog.

Note: Indexing Service is installed by default on Windows 2000. Just need
to start
it and it will have the default WEB catalog

To build up linked server that will query the Index Server on a remote
machine, the
two machines should have Windows 2000 or 2003 installed. And due to the
limitation
of the MSIXDS OLEDB Provider, only English may be used.

Here is a setup sample.

Server1 - SQL 7.0 / SQL 2000
Note: Indexing Service does not need to be started. Just need the MSIDXS
OLEDB
provider for Windows 2000

Server2 - Indexing Service started with a catalog
Note: In this case we use the default WEB catalog.

Create a MSIDXS Linked Server ¡®FileSystem¡¯ on Server1.
-------------------------------------------------------
EXEC sp_addlinkedserver FileSystem,
'Index Server',
'MSIDXS',
'Web'
GO

Connected to Server1 through Query Analyzer, run the distributed query to
Server2.
----------------------------------------------------------------------------
SELECT
* FROM OPENQUERY(FileSystem, 'SELECT Directory, FileName, DocAuthor,
Size, Create, Write FROM Server2.WEB..SCOPE ('' "c:" '') WHERE
CONTAINS(''microsoft'') ')


Cordialement,
jeanlm

"EliseD" wrote in message
news:0ac801c3db52$c4d35010$
bonjour
je tente de lier SQL serveur avec IndexServeur
(qui sont sur 2 serveurs différents : un serveur SQL et
mon serveur Web)
J'ai lu qu'il faut créer un "linked server" en spécifiant
dans les proriétés le catalogue IndexServeur.

J'ai crée 2 linked server (un en utilisant la procedure
stockée sp_addlinkedserver et l'autre par l'interface du
Enterprise manager) pour tster les 2 methodes.

J'ai aussi vérifié que le OLEDB provider pour index
Server (MSIDXS - Microsoft OLE DB Provider for Indexing
Service) etait bien sur mon Serveur SQL, en executant la
requete suivante :

use master
go
exec xp_enum_oledb_providers
go

donc ca devrait etre bon
j'ai tenté de regarder le contenu des tables de mon
linked server (avec une requete ou dans l'entreprise
manager), et tout ce que j'obtiens c'est cette erreur :

Could not execute query against OLE DB provider 'MSIDXS'.
[OLE/DB provider returned message: Le service n'est pas
en cours d'exécution. ]

j'ai cherché sur google sans succes.
Qqun aurait saurait m'expliquer pourquoi j'ai cette
erreur ?

Merci d'avance !
Avatar
EliseD
bounjour jean,
si je suit ce qui est ecrit, cela ne fonctionne que quand
les 2 serveurs sont sous win2000... mes 2 serveurs en
question sont sous winXP, et en français pas en anglais,
penses tu que je probleme viennes de la ?

-----Message d'origine-----
Bonjour,

Voici un petit example qui fonctionne.

Server1 - SQL 7.0 / SQL 2000
Note: Indexing Service does not need to be started.


Just need the MSIDXS
OLEDB
provider for Windows 2000

Server2 - Indexing Service started with a catalog
Note: In this case we use the default WEB catalog.

Note: Indexing Service is installed by default on


Windows 2000. Just need
to start
it and it will have the default WEB catalog

To build up linked server that will query the Index


Server on a remote
machine, the
two machines should have Windows 2000 or 2003 installed.


And due to the
limitation
of the MSIXDS OLEDB Provider, only English may be used.

Here is a setup sample.

Server1 - SQL 7.0 / SQL 2000
Note: Indexing Service does not need to be started.


Just need the MSIDXS
OLEDB
provider for Windows 2000

Server2 - Indexing Service started with a catalog
Note: In this case we use the default WEB catalog.

Create a MSIDXS Linked Server ¡®FileSystem¡¯ on Server1.
-------------------------------------------------------
EXEC sp_addlinkedserver FileSystem,
'Index Server',
'MSIDXS',
'Web'
GO

Connected to Server1 through Query Analyzer, run the


distributed query to
Server2.
---------------------------------------------------------


-------------------
SELECT
* FROM OPENQUERY(FileSystem, 'SELECT Directory,


FileName, DocAuthor,
Size, Create, Write FROM Server2.WEB..SCOPE


('' "c:" '') WHERE
CONTAINS(''microsoft'') ')


Cordialement,
jeanlm


Avatar
j'ai pu mettre la main sur un win2000 et tester : en
effet, la ou sous XP j'avais l'erreur que j'ai cité plus
haut dans Enterprise manager ET le query analyser, la
sous win2000 je ne l'ai que sous l'enterprise server.
merci



-----Message d'origine-----
Bonjour,

Voici un petit example qui fonctionne.

Server1 - SQL 7.0 / SQL 2000
Note: Indexing Service does not need to be started.


Just need the MSIDXS
OLEDB
provider for Windows 2000

Server2 - Indexing Service started with a catalog
Note: In this case we use the default WEB catalog.

Note: Indexing Service is installed by default on


Windows 2000. Just need
to start
it and it will have the default WEB catalog

To build up linked server that will query the Index


Server on a remote
machine, the
two machines should have Windows 2000 or 2003 installed.


And due to the
limitation
of the MSIXDS OLEDB Provider, only English may be used.

Here is a setup sample.

Server1 - SQL 7.0 / SQL 2000
Note: Indexing Service does not need to be started.


Just need the MSIDXS
OLEDB
provider for Windows 2000

Server2 - Indexing Service started with a catalog
Note: In this case we use the default WEB catalog.

Create a MSIDXS Linked Server ¡®FileSystem¡¯ on Server1.
-------------------------------------------------------
EXEC sp_addlinkedserver FileSystem,
'Index Server',
'MSIDXS',
'Web'
GO

Connected to Server1 through Query Analyzer, run the


distributed query to
Server2.
---------------------------------------------------------


-------------------
SELECT
* FROM OPENQUERY(FileSystem, 'SELECT Directory,


FileName, DocAuthor,
Size, Create, Write FROM Server2.WEB..SCOPE


('' "c:" '') WHERE
CONTAINS(''microsoft'') ')


Cordialement,
jeanlm

"EliseD" wrote in


message
news:0ac801c3db52$c4d35010$
bonjour
je tente de lier SQL serveur avec IndexServeur
(qui sont sur 2 serveurs différents : un serveur SQL et
mon serveur Web)
J'ai lu qu'il faut créer un "linked server" en spécifiant
dans les proriétés le catalogue IndexServeur.

J'ai crée 2 linked server (un en utilisant la procedure
stockée sp_addlinkedserver et l'autre par l'interface du
Enterprise manager) pour tster les 2 methodes.

J'ai aussi vérifié que le OLEDB provider pour index
Server (MSIDXS - Microsoft OLE DB Provider for Indexing
Service) etait bien sur mon Serveur SQL, en executant la
requete suivante :

use master
go
exec xp_enum_oledb_providers
go

donc ca devrait etre bon
j'ai tenté de regarder le contenu des tables de mon
linked server (avec une requete ou dans l'entreprise
manager), et tout ce que j'obtiens c'est cette erreur :

Could not execute query against OLE DB provider 'MSIDXS'.
[OLE/DB provider returned message: Le service n'est pas
en cours d'exécution. ]

j'ai cherché sur google sans succes.
Qqun aurait saurait m'expliquer pourquoi j'ai cette
erreur ?

Merci d'avance !


.