Executed on the local server (and the first remote server):
EXEC sp_addlinkedserver
  @server = N'Spedicija',
  @srvproduct = N'',
  @provider = N'SQLNCLI',
  @datasrc = N'192.168.150.2\SqlSmart';
GO
This works when I have a local server, and a remote server. But if we have two remote server (which is the actual situation) When I send a query
  nErr := oSqlSpe:exec("INSERT INTO &cKnjiga (GK_Godina, GK_Firma, GK_Nalog, GK_Datum, GK_Dokum, GK_Opis, GK_Konto, GK_Analit, GK_DugPoc, GK_PotPoc, GK_Duguje, GK_Potraz)"+;
            " SELECT GK_Godina, '" + mFirma_id + "', GK_Nalog, GK_Datum, GK_Dokum, GK_Opis, GK_Konto, GK_Analit, GK_DugPoc, GK_PotPoc, GK_Duguje, GK_Potraz FROM [Spedicija].Infobit.dbo.Spe_knjiga"+;
            " WHERE &cFirma .Gk_Godina= '" + mObrGod + "'")
I get an error message:
42000 - 27 - [Microsoft][SQL Server Native Client 10.0][SQL Server]Registry information is corrupt or missing. Make sure the provider installed and registered correctly.
Regards,
Milos