Find

Announcement
· Dec 12, 2025

InterSystems sera présent au Health&Tech Summit 2025

Salut la communauté,

Rejoignez-nous pour notre présentation lors du Health&Tech Summit 2025 !

📅  Dates : 16 - 17 décembre, 2025

📌 Lieu : Palais du Pharo & AP-HM, Marseille, France

Nous prendrons la parole lors d’une intervention dédiée à l’innovation en santé, autour des enjeux de transformation numérique et des solutions qui accompagnent les professionnels au quotidien.

Réservez la date, préparez vos questions et rejoignez-nous pour des échanges, nous avons hâte de vous rencontrer !

Inscrivez-vous dès maintenant !

Discussion (0)1
Log in or sign up to continue
Article
· Dec 12, 2025 3m read

Create Foreign Tables Using SQL via JDBC

Hi everyone. Long time no see. Again, I would like to share what I am studying recently Create Foreign Tables Using SQL via JDBC.

Since I am learning about the IRIS BI at the same time, so I started with this Sample-BI docker environment

https://github.com/intersystems/Samples-BI

 

After starting the environment, login to the management portal http://localhost:52773/csp/sys/UtilHome.csp  with the user Superuser.

Switch the namespace to IRISAPP.

 

😀 We will find out that all the sample data are stored in this namespace IRISAPP. Let's find a simple table for testing the Foreign Table feature 🤣

System Explorer > SQL

 

Let's try the table HoleFoods.Outlet by Executing the following SQL query in the Execute Query tab

SELECT
ID, City, Country, Latitude, Longitude, Population, Type
FROM HoleFoods.Outlet

 

Great!!😉 there are 35 entries in this table. Let's use it.

 


Step1  -  Setup the JDBC connection

By studying the document below, InterSystems IRIS db can be connected by JDBC by the following way

Using the SQL Gateway as a JDBC Data Source

So, let's using the Namespace IRISAPP as the JDBC source database for testing, and set up a connection for it.

Add a new connection by System  > Configuration  > SQL Gateway Connections 

 

Input the following

Connection name  testjdbc
User superuser
Password {you own password}
Driver name com.intersystems.jdbc.IRISDriver
URL  jdbc:IRIS://127.0.0.1:1972/IRISAPP

Leave Class path blank in this case, because is connecting to InterSystems IRIS DB. If connecting to the 3rd party DB, remember to download the JDBC driver file (.jar) and specific the path of the drive in the Class path filed.

 

Save and Test the Connection. Connection successful should be expected. 😁

Yeah!!! we finished the 1st step.

 


Step 2 - Create Foreign Table

Now switch to another Namespace USER, which do no contain the table HoleFoods.Outlet. 😉

Here we would like to query this external table HoleFoods.Outlet by making use the feature of Foreign Table. (In InterSystems IRIS, different Namespace, can be config to point to different DB. In this example, Namespace IRISAPP and Namespace USER are pointing to different DB. As a result, we cannot query the table Namespace IRISAPP from Namespace USER directly. )

 

By studying the document below, we can directly create foreign table by SQL.😁👍

Foreign Tables

So let's go to the SQL execution page again. System Explorer > SQL

 

1. Define a Foreign Server

Now we are going to define a Foreign Server Sample.testDB by the following SQL. testjdbc is the name that we defined in the SQL Gateway JDBC connection in the pervious step.

CREATE FOREIGN SERVER Sample.testDB FOREIGN DATA WRAPPER JDBC CONNECTION 'testjdbc'

 

 

2. Define a Foreign Table

Now we are going to define a Foreign Table demo.outlet, which is pointing to the table HoleFoods.Outlet through the JDBC gateway

 

CREATE FOREIGN TABLE demo.outlet SERVER Sample.testDB TABLE 'HoleFoods.Outlet'

Let's check the result from the table list

Yeah!!!!  A Foreign Table demo.outlet is created. Oooo the schema is read and created automatically btw😂Happy happy.

 


Finally, test the Foreign Table by running the following SQL

SELECT * FROM demo.outlet

 

 

35 Outlets are returned!!! Yeah!! We made it.🤣

 


Only for your reference

Dropping the Foreign Table demo.outlet 

DROP FOREIGN TABLE demo.outlet

 

 

Dropping the  Foreign Server Sample.testDB 

DROP FOREIGN SERVER Sample.testDB CASCADE

 

That's all I want to share!!! Thanks for reading😘

Discussion (0)1
Log in or sign up to continue
Article
· Dec 11, 2025 3m read

Jupyter Notebook から InterSystems ObjectScript を動かしてみよう!

開発者の皆さん、こんにちは。

先日の 第3回InterSystemsJapan開発者コミュニティミートアップでは、Google Colab を使ったワークショップを実施しました。
その際、解説を読みながら、その場でコードを実行できる Jupyter Notebook の良さを改めて実感しました。

  • 「このメソッド、どう使うんだっけ…?」
  • 「処理の途中で変数の中身を確認したい…」
  • 「現場で実行するルーチンと作業手順を一緒に残しておきたい…」

こうした課題は、Notebook 形式にするだけで驚くほど解決します。
サンプルコードのすぐ横に解説を置けるので、迷う時間が減り、そのまま作業ドキュメントにもできます。
ObjectScript でも同じことができれば、学習にも現場作業にもとても便利ですよね。


ObjectScript を Notebook から実行したい…でも...

実は以前、開発者コミュニティに Jupyter Notebooks に ObjectScript を追加する方法https://jp.community.intersystems.com/node/521496)といった記事が紹介されていました。「これは便利そう!」と思い GitHub リポジトリ(https://github.com/Vekkby/objectsriptkernel)を試してみたものの、バージョンが古く、そのままでは動作しませんでした。

そこで、動作するように修正版を作成し、使い方もまとめました!

「ObjectScript を Notebook で動かしてみたい」
「学習環境やデモ環境を簡単につくりたい」

そんな方はぜひお試しください!


使い方(セットアップ手順)

とてもシンプルです。
以下の手順どおりに進めるだけで、Jupyter Notebook 上で ObjectScript を実行できる環境が立ち上がります。

1. 仮想環境の準備(WSL 2 / Docker)

Docker コンテナを利用するため、Windows の場合は以下の記事などを参考に WSL2 + Dockerのインストールを行ってください。

https://qiita.com/hiroakikka/items/b7a63383fb8cb989e722
https://qiita.com/haveAbook/items/0d0ae20a19214f65e7cd

(すでに Docker が動く方はこのまま次へ進めます。)

2. リポジトリをクローン

Ubuntuターミナルを起動し、修正版を GitHub から取得します。

git clone https://github.com/miniclub/objectscriptkernel

3. docker-compose で Notebook 環境を起動

docker-compose up -d --build 

数十秒ほどで、ObjectScript が使える Jupyter Notebook が起動します。

4. Notebook にアクセス

ブラウザで以下を開くだけです

👉 http://localhost:8888

Jupyter Notebook の画面が表示され、
ObjectScript カーネルを選べば、すぐにコードを実行できます。


おわりに

Notebook 上で ObjectScript を動かせると、学習・検証・現場作業のすべてが一段と効率的になります。
ぜひ試していただき、フィードバックや改善案などお寄せいただけると嬉しいです。

Discussion (0)1
Log in or sign up to continue
Announcement
· Dec 11, 2025

開発者コミュニティが10周年を迎えました!

開発者の皆さん、こんにちは!

2025年12月7日、InterSystems開発者コミュニティ(US)は10周年を迎えました!🥳🎉

この10年間、学び、コラボレーション、問題解決、そして InterSystems の技術の進化を共に歩んできたことを称えたいと思います。設立当初から参加していただいた方も、最近参加された方も、これまでの貢献、ご質問、アイデア、そしてサポートに感謝いたします。この節目は、皆様のものです! 皆様のおかげで、このコミュニティは今日のような形に築き上げられました。心から感謝いたします!

記念すべき一環として、特別なアニバーサリービデオへのご参加をお願いしました。そして、素晴らしい内容が投稿されました!お時間を割いていただき、お祝いの言葉や思い出、温かいお言葉を共有してくださった皆様、本当にありがとうございました。

これからの10年間もイノベーションとコラボレーションを続けていきましょう!🔥

追伸:日本のFAQチームも参加してみました。一瞬ですが登場します。ぜひ探してみてください!


この後の投稿もどうぞお楽しみに。これはほんの始まりに過ぎません。さらなる記念日のハイライトやサプライズが近日中に登場します!

Discussion (0)1
Log in or sign up to continue
Digest
· Dec 11, 2025

Join the 3rd InterSystems Teach Article Writing Contest

Dear colleague,

We're happy to announce the new internal InterSystems Technical Article Writing Contest:

✍️ Tech Article Writing Contest for InterSystems Employees ✍️

Write an article on any topic related to InterSystems IRIS or IRIS for Health (and all related products, e.g. HealthShare, Cloud Smart Data Services, etc.) and publish it on the Developer Community during the contest period: December 1, 2025 - January 25, 2026.

🎁 Prizes for everyone: A special gift for each author who takes part in the competition!

Important Dates:

  • December 1, 2025 12:00 am EST: Contest begins.
  • January 25, 2026 11:59 pm EST: Deadline for submissions.
  • January 26 - February 1, 2026: Voting period.

READY. SET. WRITE.

➡️ All details can be found on this SharePoint Page.