From Harvinder.Singh@MetraTech.com Wed, 06 Jun 2001 09:27:54 -0700
From: Harvinder Singh <Harvinder.Singh@MetraTech.com>
Date: Wed, 06 Jun 2001 09:27:54 -0700
Subject: how to connect from oracle to sql server database
Message-ID: <F001.0031E7D6.20010606092647@fatcity.com>
MIME-Version: 1.0
Content-Type: text/plain


Hi,

I am trying to connect from oracle to sqlserver using oracle oledb
but when i try to execute the follwing command from sqlplus i am 
getting error:

SQL> select * from "dbo"."EMPLOYEES"@MSOLEDB;
select * from "dbo"."EMPLOYEES"@MSOLEDB
                                *
ERROR at line 1:
ORA-12154: TNS:could not resolve service name

the tnsnames.ora entry looks like this:

MSOLEDB =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = ora2000)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = GCORA2000)
    )
      (HS=OK)
  )

sql server name is ora2000.

what i have to change.

Thanks
Harvinder
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Harvinder Singh
  INET: Harvinder.Singh@MetraTech.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


