John, Have you checked the SQL log when doing the search (Open the Form in the User Tool, Turn on the SQL log, Try the search, Turn off the log) and you can then see exactly what SQL the system is trying to run. It may have something to do with the CAST and if you have the fields set for Leading, Anywhere, or Exact QBE matching.
Fred -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Reiser, John J Sent: Tuesday, March 06, 2012 12:07 PM To: arslist@ARSLIST.ORG Subject: Re: Trying to build a view form to a Remote Oracle DB from a Remedy SQL DB Gary, Jean-Louis is correct. I am trying the same thing on ARS 7.6.03. Had the DBA create a Linked Server on MS SQL using DTS. I created a view in the ARSystem database using MS SQL Server management Studio. SELECT CAST(CONTROL_UNIQUE_ID AS int) AS UNIQUE_ID, CAST(CONTROL_NUM AS varchar) AS Control_Num, CAST(PLANT_CODE AS varchar) AS Plant_Code FROM LINKNAME..DATABASENAME.TABLENAME AS TABLENAME_1 I could then create an ARSystem View Form but that is as far as I got. I can query either view in MS SQL Studio and get results but not from the WUT running a search on the View Form. I even tried a Direct SQL set fields action with no luck. I'll post more if I get something working. --- John J. Reiser Remedy Developer/Administrator Senior Software Development Analyst Lockheed Martin - MS2 The star that burns twice as bright burns half as long. Pay close attention and be illuminated by its brilliance. - paraphrased by me -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Halleux, Jean-Louis Sent: Tuesday, March 06, 2012 11:04 AM To: arslist@ARSLIST.ORG Subject: EXTERNAL: Re: Trying to build a view form to a Remote Oracle DB from a Remedy SQL DB Hi Gary, According to my experience, creating a view form on a db link does not work well. What I usually do in that case is creating an SQL view, in the DB direclty, that will use the db link; and then create the view form on the SQL view. Best regards, Jean-Louis Halleux -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Gary Dries Sent: mardi 6 mars 2012 16:44 To: arslist@ARSLIST.ORG Subject: Trying to build a view form to a Remote Oracle DB from a Remedy SQL DB I have a need to build a view form to a table on a Remote Oracle DB 10g from our ARS 7.1.06 running sql 2005 DB server Has anyone been sucessful doing this? We created the DBlink between the 2 dbs and we are able to connect from the sql server via other tools like odbc or sql plus and see the table on oracle db. ARAdmin is the oracle table owner and has read/write access, (I am still scptical) attempted to create the view using the parameter LINK.DATABASE.TABLEOWNER.TABLE and I always recieve the error in the Admin tool "Failure during SQL operation to the database : CMS_TEST.CMSTEST.ARADMIN.REMEDY_CASES (ARERR 552)" SQL Log posts this error *** ERROR *** Invalid use of schema or catalog for OLE DB provider "MSDASQL" for linked server "CMS_TEST". A four-part name was supplied, but the provider does not expose the necessary interfaces to use a catalog or schema. (SQL Server 7312) I have worked with BMC Support and they back up all of our configuration and settings in the ar.cfg file, and all other system settings. Any Ideas? -- Gary Dries OSSNMS / Sr. Remedy Developer T-Mobile USA Office (972) 464-3235 _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"