Once Linked JDEdwards database in our MS-SQL database under the Linked server and when we going to see the data it should be encrypted. Here I am show to how to see data like as MS-SQL.

Actual JDEdwards data

My linked server name is “TESTDTA” (JDEdwards database). Open new query window type the below query & press (F5).

  1. SELECT VJDGJ FROM [TESTDTA].[F1001]   

Output

JDE1.png

Convert AS SQL Data

  1. SELECT (DATEADD(DAY, VJDGJ % 1000, DATEADD(YEAR, VJDGJ / 1000, -1)))
  2. FROM [TESTDTA].[F1001]

Output

 Jde2.png

Meanwhile we can insert the data to JDEdwards and without convention, it’s shouldn’t effect on JDEdwards table. So before insert data convert like a below query.

  1. –INSERT INTO [TESTDTA].[F1001] (VJDGJ)
  2. SELECT (1000 * DATEDIFF(YEAR, 0, GETDATE()) + DATEPART(DAYOFYEAR, GETDATE()))

Output

jde3.png
Advertisements