Topic Options
Rate This Topic
#137756 - 05/23/07 01:52 AM SQL to external DB
Carlos Offline
Stealth Member

Registered: 01/24/07
Posts: 82
Loc: London
Hi,
Wondering if someone could shed a little more light on using SQL withing a set fields function to access data in an external Access DB.

The help files are kinda confusing to how to go about this, and my understanding a little scarse.
It says to use <DatabaseName.owner.table> within the SQL command syntax.
Can someone explain what owner is meant to be, or how I go about finding it.

I am guessing I use it in a context of:

SELECT * FROM <DatabaseName.owner.table> WHERE <COL_NAME> = '$First Name$'


Regards
Carl

Top
#137758 - 05/23/07 02:09 AM Re: SQL to external DB [Re: Carlos]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
Hi,

The owner is the database user whch owns the object. Ask your DBA to know who is this database user.
_________________________
Vincent.

Top
#137773 - 05/23/07 04:12 PM Re: SQL to external DB [Re: Vincent_RIEDWEG]
Carlos Offline
Stealth Member

Registered: 01/24/07
Posts: 82
Loc: London
Hi Vincent,
could you please give me an example of

<DatabaseName.owner.table>

I would like to access a local db on the C: drive called HiTV.mdb (MS Access).

Regards
Carl


Edited by Carlos (05/23/07 04:24 PM)

Top
#137774 - 05/23/07 04:43 PM Re: SQL to external DB [Re: Carlos]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
Ms Access is not a supported database by AR System.

You need to develop using AR System API and MS Access API an ARDBC plugin to access to this database from your AR System server. Look at C API Reference Guide and Integration Guide for more information. There are some ARDBC code examples.

If the MS Access database is located on your client, try to use OLE Automation actions in active links to connect your AR System client to your MS Access database. I don't know if this solution can work.

The only "sure and approved" solution is to develop an ARDBC plugin.
_________________________
Vincent.

Top
#137775 - 05/23/07 05:03 PM Re: SQL to external DB [Re: Vincent_RIEDWEG]
Carlos Offline
Stealth Member

Registered: 01/24/07
Posts: 82
Loc: London
Ok,
thank you kindly

Cheers
Carl

Top
#137776 - 05/24/07 12:15 AM Re: SQL to external DB [Re: Carlos]
Carlos Offline
Stealth Member

Registered: 01/24/07
Posts: 82
Loc: London
Ok,
still want to play with the SQL command.
I have a Informix and SQL database available via ODBC. How would I access them via the SQL command?
Is there a relationship I have to setup with Remedy, or have them listed somewhere so Remedy knows where they are?

Regards
Carl

Top
#137777 - 05/24/07 01:52 AM Re: SQL to external DB [Re: Carlos]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
If your AR System server is running on Informix, you can make a database link between these two Informix databases to access to the other Informix database thru AR System.

Otherwise, it's not possible to access to other database thru ODBC. You need to developp an ARDBC plugin to do this.
_________________________
Vincent.

Top
#137778 - 05/24/07 03:26 AM Re: SQL to external DB [Re: Vincent_RIEDWEG]
Carlos Offline
Stealth Member

Registered: 01/24/07
Posts: 82
Loc: London
My ARSystem is on SQL 2000. I would like to access an external database that is not the Remedy backend.
I have available an informix, sql and other databases that we use in the company / different servers etc.

Was hoping to link into these to pull information into Remedy for "live" information.

I was under the understanding that the sql command in a set fields would allow me to do this, but was wondering where the relationship was formed in Remedy to these other databases
eg how does Remedy know where they are.

Help files seem to suggest that this is possible using the sql command.

<DatabaseName.owner.table>

i.e. I would like to put a button on a form, run an active link that pulls the up to date information from the external db and displays this to the user.

Regards
Carl

Top
#137779 - 05/24/07 03:57 AM Re: SQL to external DB [Re: Carlos]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
You can create a link between Ms SQL Server databases and AR System database (Ms SQL Server). So you can with the following SQL syntax databaseName.owner.table make some queries and/or view forms to the other linked databases.

If it isn't a Ms SQL Server database, you must developp an ARDBC plugin to access via Vendor forms to the other databases.
_________________________
Vincent.

Top