infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
Access database using connection definition
RICK L. PRITCHETT
Hi everyone,
Is there a way to use a DB connection defined in the "Site preferences" under the "Database Connections" tab to connect to a DB?
Find more posts tagged with
Clovertech
Comments
Keith McLeod
Have you looked in Tables and used the Database Options?
RICK L. PRITCHETT
I wanted to use a tcl script to query my external DB and return the results to compare against a lookup table. I know we can do that but wanted not to use the pw in the script.
Jim Kosloskey
I suppose you could read the dbconfiguration.ini file in the site directory. It looks like everything you might need is there.
But how about using the source DB as the lookup and then you will know you have the correct information? I would suggest using a Stored Procedure (written by the owner of the data ideally). I posted a white paper I produced about using a DB as a lookup via a Stored Procedure. There is even a sample SP therein.
RICK L. PRITCHETT
Hi Jim,
Reading the file for information such as the password and username might work. I see the PW is encrypted in the file. Is there a way to decrypt it, or can it be used as is?
Jim Kosloskey
It all depends on what the DB requires for a Password. If you knew the encryption techniques used I suppose you could try to decrypt it.
If you are determined to do a compare and the .ini file does not work, maybe using the DB Protocol to extract the DB information then some Tcl to do a compare to the Table might work.
RICK L. PRITCHETT
I know a DB table lookup would normally return one value. Could a db table lookup be used to return multiple lines if needed
Jim Kosloskey
I was referring to the DB Protocol not DB Lookup. So, you would use the DB Protocol (with either SQL Statements or Stored Procedure - my preference is SP) to extract the elements of interest from the DB; then using Tcl (or perhaps an Xlate) you would do a lookup of each returned element from the Lookup Table doing whatever you want when there is no match or if there is a match.
RICK L. PRITCHETT
Can the db lookup handle multiple values returned?