Title: RE: DBLink to SQL Server problem
Greg, I got it to work.  The Docs only tell you part of the story.  Let me know if you need any help in setting this up since I have spent a few days trying to get this working.
 
Dave
-----Original Message-----
From: Loughmiller, Greg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 10:14 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: DBLink to SQL Server problem

since you are going to sqlserver - I wonder if you need to place the following on the object/database

....... from <dbname>.<owner>.<table>@msql

I haven't seen the doc you mention(and forgive me if this is redundant info you know)-but SQL has the concept of multiple databases within the "instance", and each DB has a "DBO" account..

select <table>.<column>  from [EMAIL PROTECTED]

Just a thought-but would be interested in knowing the solution when you are able to get this working.. I just came across a project where we may need to do this here..

greg

-----Original Message-----
From: Farnsworth, Dave [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 02, 2003 9:34 AM
To: Multiple recipients of list ORACLE-L
Subject: DBLink to SQL Server problem


I created a DBLink to a SQL Server database following DocID: 114820.1.  It seemed to work fine until I tried a real query.  If I do something like a SELECT COUNT(*) or SELECT * it works fine;

tdispach> select count(*) from [EMAIL PROTECTED];

 COUNT(*)
---------
     1207

But if I try to select on a specific field or have a WHERE clause specifying a filed I get this;

tdispach> select mpp_id from [EMAIL PROTECTED];
select mpp_id from [EMAIL PROTECTED]
       *
ERROR at line 1:
ORA-00904: invalid column name

I know that the column name is correct so something else is not translating properly.  I tried a fully qualified column name of MANPOWERPROFILE.MPP_ID and that got the same error.  I don't see any setting in my DSN that could effect this.  Anyone have any ideas, hunches or clues?

Thanks,

Dave
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Farnsworth, Dave
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to