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
Read Only Archives
Cloverleaf
Tcl Library
SQL Server
System
Originally posted by Cory Cole
Can anybody provide me with the necessary commands to connect to a Sql Server database through Cloverleaf TCL?
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Are you using Data Integrator (I think that is the correct title) which are the DataDirect ODBC drivers?
System
Originally posted by Cory Cole
I found some commands on line but I get an invalid command error. I want to make sure that I am using the correct commands.
Peter Heggie
There are ODBC commands, available on UNIX through a separate purchased package from INFOR (or free if on Windows), which Jim is referring to.
ex:
package require odbc
# initialize ODBC environment
set result [odbc SQLAllocHandle SQL_HANDLE_ENV SQL_NULL_HANDLE henv]
There are also newer commands to perform table lookups to SQL Server or Oracle in TCL.
ex:
set flags [dblookup -metacolumnname patientflags.tbl $ecd $encounter]
or simply:
set flag [dblookup "tablex.tbl" "$encounter"]
Peter
System
Originally posted by Cory Cole
We are using Cloverleaf 6.0 and we have SQL Server database. We have the ODBC drivers loaded. What I need is an example of the connection command and an example of a stored procedure call (insert statement will work. I can alter it to a stored procedure)
Jim Kosloskey
email me and I will send you a proc which calls a Stored Procedure using the ODBC Drivers.
Essentially the proc is argument driven and simply connects to the indicated DB and invokes the Stored Procedure presenting the message as an argument to the Stored Procedure. All appropriate error handling vis-