Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Performance Management
Smart Notification
SQL Help
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
raghu
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5150
People Online:
Visitors:
264
Members:
0
Total:
264
Online Now:
New Topics
IPA/ProcessFlow
WFWORKUNIT table, WF-STATUS field value set
7/25/2024 8:51 PM
documentation I can find has values for this field
Lawson S3 HR/Payroll/Benefits
Benefit change/termination reules
7/23/2024 2:22 PM
Can old benefit change/termination rules rules be
IPA/ProcessFlow
this.bean is null
7/19/2024 5:42 PM
Getting this error when my IPA gets to the second
IPA/ProcessFlow
Converting UTC Date to EST Date using Javascript
7/16/2024 2:53 PM
I'm looking for how others are performing a co
S3 Systems Administration
Changing the orgs email domain
7/12/2024 8:44 PM
Hello! We're changing our email
Dealing with Lawson / Infor
Managing List Views
6/20/2024 4:44 PM
I have list views in both PO13.3 and IC11 that are
Lawson S3 Financials
PO Matched Dollars and Matched Quantity
5/10/2024 6:51 PM
Can anyone share the Lawson calculation to determi
S3 Customization/Development
COBOL CSV file
5/10/2024 2:36 PM
We have a custom Cobol program ZU200 that creates
S3 Systems Administration
Using MFA for Lawson S3 Access
5/8/2024 1:23 PM
Does anyone use Multi Factor Authentication when u
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1360
Roger French
1312
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Performance Management
Smart Notification
SQL Help
Please
login
to post a reply.
2 Replies
1
Subscribed to this topic
72 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Greg Moeller
Veteran Member
Posts: 1498
11/6/2023 4:44 PM
We're trying to automate the documentation of Smart Notes Data Sources.
(I've found the Reporting Services, Override DSN, and Landmark Data Sources)
I've partially found the SN's entries-
SELECT *
FROM [LawsonSN].[dbo].[ENPTREEATTRS]
WHERE ENTRYPARENT = 601
gives me their names and desciptoins... but no other information.. Unless it's encoded in the ATTRBINARYVALUE field...
Can anyone help me out?
Greg Moeller
Veteran Member
Posts: 1498
11/7/2023 4:02 PM
I got an answer on the Infor Communities page so thought I'd share here...
you might be better off selecting by EntryCategory = 5 (which is "Data Sources", according to the ENPCategories table). And yes, the actual data source definition is stored in the ATTRBINARYVALUE, which you can access by a bit of casting:
SELECT cast(substring(attrbinaryvalue,1, 500) as varchar(500)) from ENPTREEATTRS
WHERE entrycategory = 5
Greg Moeller
Veteran Member
Posts: 1498
11/9/2023 2:49 PM
Here's the query that @Elliott came up with to help me out:
with CS (ConnectionString) as
(
select cast(cast(substring(attrbinaryvalue,1,550) as varchar(550)) as xml) as ConnectionString
from LawsonSN.dbo.ENPTREEATTRS
where attrcategory = 5
)
select
--CS.ConnectionString
CS.ConnectionString.value('(/data_connection/name)[1]','varchar(50)') as DBName
,CS.ConnectionString.value('(/data_connection/jdbc_url)[1]','varchar(150)') as JDBCURL
,CS.ConnectionString.value('(/data_connection/jdbc_database)[1]','varchar(50)') as JDBCDatabase
,CS.ConnectionString.value('(/data_connection/jdbc_user)[1]','varchar(50)') as JDBCUser
from CS
Please
login
to post a reply.