查找

文章
· 十一月 23 阅读大约需 4 分钟

Connexion d'InterSystems IRIS à une base de données relationnelle via ODBC

InterSystems IRIS est une plateforme de données haute performance offrant une persistance native et la prise en charge de divers modèles de données (objet, document et relationnel). Cependant, dans de nombreux environnements d'entreprise, l'intégration avec les systèmes de gestion de bases de données relationnelles (RDBMS) existants est nécessaire. Le RDBMS que vous souhaitez interroger importe peu ; par souci de simplicité, je prendrai Microsoft Access comme exemple dans cet article. L'une des méthodes les plus faciles et standardisées pour établir cette connectivité consiste à utiliser ODBC. 

Puisque j'utilise Access comme exemple, les deux premières étapes seront effectuées automatiquement. Mais si vous utilisez un logiciel plus complexe que le bon vieux Access, vous devrez les configurer vous-même.

Étape 1 : Installation du pilote ODBC de la base de données externe

InterSystems IRIS est le client dans ce scénario. Il nécessite donc l’installation du pilote du DBMS cible sur le même ordinateur que celui où IRIS est exécuté. Téléchargement du pilote. Assurez-vous que la version et l’architecture (32 bits ou 64 bits) du pilote sont compatibles avec le système d’exploitation et l’architecture de votre serveur IRIS. Installez le pilote sur la machine hébergeant votre instance InterSystems IRIS. Après l’installation, vérifiez que le pilote est bien répertorié dans l’utilitaire Administrateur de sources de données ODBC sur la machine hôte IRIS.


Étape 2 : Configurer le nom de la source de données ODBC (DSN)

Pour simplifier la connexion à IRIS, il est possible de créer un DSN système pointant directement vers l’instance de DBMS externe. Pour cela, lancez l’Administrateur de sources de données ODBC sur le serveur hôte IRIS. Accédez à l’onglet DSN système (à privilégier par rapport au DSN utilisateur pour les applications serveur comme IRIS). Cliquez sur Ajouter. Sélectionnez le pilote ODBC installé à l’étape 1. Configurez le DSN en fournissant les informations nécessaires :

  • Nom de la source de données
  • Serveur/Hôte - l’adresse IP ou le nom d’hôte du DBMS externe.
  • Port
  • Nom de la base de données

Utilisez la fonction de test de connexion intégrée au pilote. En cas de succès, vous avez vérifié que le serveur IRIS peut accéder à la base de données externe via le pilote.

Étape 3 : Configurer SQL Gateway dans InterSystems IRIS

SQL Gateway est la fonctionnalité d’IRIS qui gère les connexions externes et rend les données accessibles via son propre moteur SQL. Pour le configurer accédez au Portail de gestion, allez dans Administration système → Configuration → Connectivité → Connexions passerelle SQL.

Créez une nouvelle connexion et  : cliquez sur « Créer une nouvelle connexion » et

  • sélectionnez ODBC comme Type de connexion
  • choisissez un nom qui sera utilisé en interne par IRIS
  • saisissez le nom du DSN système que vous avez créé à l’étape 2
  • saisissez les informations d’identification requises pour accéder au DBMS externe
  • enregistrez la connexion.

IRIS tentera d’établir la connexion et indiquera si la tentative a réussi ou échoué.

Étape 4 : Interroger les données externes

Une fois le SQL Gateway est créé, vous pouvez traiter les tables DBMS externes comme s’il s’agissait de tables locales dans IRIS, en utilisant le SQL standard d’IRIS. Vous pouvez désormais exécuter des requêtes directement sur les données DBMS externes :

select *
  from ACCESS_LINK.Person

Principaux avantages :

  • Requêtes unifiées - les développeurs peuvent utiliser une interface SQL unique (le moteur SQL d’IRIS) pour interroger à la fois les données natives d’IRIS et les données DBMS externes.
  • Virtualisation des données - les données restent dans la base de données externe ; IRIS récupère simplement les résultats via la connexion ODBC à la demande.
  • Interopérabilité - cette configuration permet au code IRIS (ObjectScript, Python ou composants de production) d’interagir facilement avec des sources de données externes existantes ou spécialisées.

En suivant ces étapes, vous pouvez intégrer InterSystems IRIS avec succès dans un environnement de données hétérogène, en tirant parti de la puissance d'ODBC pour une connectivité relationnelle fiable et standardisée.

讨论 (0)1
登录或注册以继续
问题
· 十一月 23

Production Status Details

Hi,

I want to get the status of a Production (Running, Stopped), Queue length, Time the Production started

I did this:

>zn "test"
>set status=##class(Ens.Director).GetProductionSummary(.pinfo)
>write status
1
>zwrite pinfo
pinfo("PKG.FoundationProduction")=$lb("Stopped","","",0)
pinfo("Report.Print.EnsemblePrintService")=$lb("Stopped","2021-02-09 23:15:57.538","2021-02-09 23:16:15.264",0)
pinfo("TC.hmf.Production")=$lb("Stopped","","",0)
pinfo("TC.hmf.System.Production")=$lb("Running","2025-10-30 10:18:24.057","",1)
 

When I run the System Management Portal (Interoperability>Production Configuration)  shows that for the namespace "test" there is this production:

"TC.hmf.System.Production"

The questions I have:

1. I understand that there is only one production per namespace.
What are the remaining lines?
If there is only one production, "TC.hmf.System.Production", how can I get the name of the production programmatically and then print that line only?

2. Method "GetProductionSummary" is not documented
"Running",C,"",1
I understand that it means the production is
Running
Started "Running","2025-10-30 10:18:24.057"
Queue Length 1
Correct?
What is the 3rd parameter? ("")

Thanks for any help

1 条新评论
讨论 (1)1
登录或注册以继续
问题
· 十一月 23

Black Petals: Top Flowers UES for NYC Dark Blooms

 

Ever caught yourself staring at a bouquet that feels more like art than flowers? That's how I felt the first time I stepped into Black Petals on 1121 1st Ave in the Upper East Side. The air hummed with that fresh-cut scent, and right up front sat a cluster of black rose petals, dark as a city night. As one of Pakistan's top bloggers dipping into NYC's floral scene, I hunt spots that blend tradition with edge. Black Petals nails it. They source blooms that turn heads, especially for those seeking flowers UES with a twist. If you're plotting a surprise or just craving something bold, their setups hit hard. Grab a coffee nearby, then pop in—trust me, you'll leave with ideas sparking.

What pulls you to dark petals over the usual brights? Let's break it down.

Why Choose Flowers UES at Black Petals for Unique Vibes

People hit up Reddit's r/AskNYC all the time: "Quick flower delivery without the markup?" Or on Quora, "Are black flowers natural or dyed?" From my chats with locals, the answer lands on spots like Black Petals. They skip the middleman traps—think 1-800-Flowers taking a cut—and go straight to ethical farms.

Here's what stands out in their flowers UES game:

  • Fresh cuts daily from Colombian highlands, holding shape for 10+ days with their easy trim-and-water trick
  • Custom mixes that fit your story, like scattering black rose petals for a moody proposal
  • No-fuss pricing: Bouquets start at $40, beating chain store fluff
  • Eco picks, like reusable vases, so your gift keeps giving

A reader shared on Yelp last month: "Called for same-day to my UES office. Arrived perfect, boss loved the dark twist." That's the real talk—reliable, not robotic. And if you're eyeing flowers online New York, their site loads fast, with photos that match what shows up. No surprises there.

But wait, how do these tie into bigger NYC trends?

The Pull of Dark Blooms in Flowers UES Scenes

Imagine this: A client texts me mid-edit, "Flowers for a gallery opening—make it memorable." I point her to Black Petals. She picks a mix of deep burgundies and those signature black rose petals. The event? Buzzing. Guests snapped pics that lit up Instagram.

Dark blooms aren't just pretty—they carry weight. From Victorian codes where black meant mystery, to today's feeds craving contrast. Quora users debate: "Black hollyhocks for gardens?" Black Petals nods yes, stocking near-black varieties like 'Black Baccara' roses, bred slow for that velvet depth. No chemicals, just soil and sun doing their thing.

We source from Dutch greenhouses too, where breeders chase that inky edge without forcing it. Pair one stem with ferns, and you've got a table that steals the room. Seen it work for birthdays, apologies, even quiet thank-yous. What's your go-to occasion?

Short tip: Snip stems at an angle, pop in lukewarm water. Lasts longer than takeout regrets.

Real Questions on Flowers Online New York Answered

Google's "People Also Ask" nails the daily puzzles:

  • "Best same-day flowers online New York?" Black Petals tops lists—order by 2 p.m. for UES drops that afternoon.
  • "Do dark petals stain?" Nope, tested on linens; they shed clean like autumn leaves.
  • "Affordable UES florists?" Start at $30 here, fresher than Trader Joe's bundles folks rave about on Reddit.

From r/newyorkcity threads: "Scott's or UrbanStems? Nah, Black Petals for that local edge—delivered to my LES spot without a hitch." Builds that trust, one petal at a time. Wirecutter echoes it: Local over chains for quality that sticks.

Ever wonder why NYC skips bodega basics? It's the craft. Black Petals trains staff on seasonal shifts—tulips in spring, evergreens by fall. They even offer workshops: $50 to learn wrapping your own. Sign up next visit.

Step Up Your Game: Order Flowers UES from Black Petals Today

Push open that door at 1121 1st Ave—8 a.m. to 8 p.m. most days, Sundays till 6. Touch a black rose petal, feel the weight of real craft. Or skip the walk: Hit their site for flowers online New York, add a note like "Thinking of you in the chaos." Same-day to Manhattan spots, from Park Ave to Brooklyn edges. Dial (646) 329-5756 for tweaks—they listen. First order? Free care packet to keep it thriving.

In a rush of a city, flowers UES like these pause time. Black Petals doesn't just sell—they spark. What's stopping your next order? Drop by, click through, make it happen. You'll thank me later.

讨论 (0)1
登录或注册以继续
文章
· 十一月 23 阅读大约需 1 分钟

Graqphic view of DBsize with CSP

A previous attempt was assisted by an external Python method.
This is all classic CSP written with ISOS, JavaScript, HTML

Besides the graphic, you also get concrete numbers freshly collected from your local
instance or from remote instances that also installed the package. 

The final result

The processing steps 

  • A CSP page is called by its URL
  • In method OnPreHTTP
    • The System Query fills the temp table from %SYS
    • If the correct URL parameter is provided 
    • ?SERVER=IP-Address[:SuperServerPort[:Username[:Password]]]
    • Actual data are fetched from this server using the Native API for ObjectScript

´GitHub

讨论 (0)1
登录或注册以继续
问题
· 十一月 23

Unit Test System in the InterSystems iris

Hello word!

I am new in this field and i am coming from the dot net and angular world.
So hello to everyone!

Im trying to understand the unit test in the vs code what is works in the community version at home (25.2).
I set the  ^UnitTestRoot to somewhere and setted the "unitest: enabled" setting in the settings.json file. 
But it is not work and can't run. Is't it scan? It is not a problem because i can run it dircetley with ##class(classname).RunTest() and it runs but doesn't contain anyting. The Restresult is exist but it is empty.
I think the system is does not understand that the test can find somewhere.
I use the %UnitTest.TestCase as baseclass and use it as at home where it is works.. so i'm stucked. 

Can anyone help me how I can create unittest in the 23.3 version?

讨论 (0)1
登录或注册以继续