Hi guys.
I need validate a field string in a table. It needs have a specific mask
I want use regex + CASE expression
There is any function to this purpose in SQL?
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hi guys.
I need validate a field string in a table. It needs have a specific mask
I want use regex + CASE expression
There is any function to this purpose in SQL?
Hi
I have two tables: one a local table using cache and the other is via an SQL gateway connection to an MSSQL Server via a 64bit ODBC driver (ODBC Driver 17 for SQL Server).
When I try to join them on a date field I don't get any matches, and I know that there are matches, e.g. running both views separately returns resuls for 30/11/2022.
The following statement returns rows for the first table r, but nothing for the table l
select r.*, l.*
from GMMHTIE_PCMIS_Table_PCMIS.vwPCMISNewCasesCount r
leftouterjoin GMMHTIE_PCMIS_Table_Local.vwPCMISNewCasesCount l
on l.createdThis set of tools (RanRead, RanWrite, and the combined RanIO) is used to generate random read and write events within a database (or pair of databases) to test the IO speed of IRIS running on a specified hardware setup. While Read operations can be measured in the usual Input/Output operations per second (IOPS) since they're direct disk reads, write events are sent to the database and thus their physical writes are managed by IRIS's write daemon.
Results gathered from the IO tests will vary from configuration to configuration based on the IO sub-system. Before running these tests, ensure corresponding operating system and storage level monitoring are configured to capture IO performance metrics for later analysis. The suggested method is by running the System Performance tool that comes bundled within IRIS. Please note that this is an update to a previous release, which can be found here.
Hi everybody!
I'm new to a Caché world and need some help! Where I work we are running Cache 2016.1 version in a server, and 2018.1 in another server. I want to upgrade the version 2016.1 to 2018.1, but I fear it can raise some errors tha I cant resolve yet. My doubt is, if I upgrade it will run ok?
Thanks in advance!
Hello
I need to enable %Service_Terminal with shell script:
1) Enable %Service_Terminal
2) Enable delegate authentication on this Service
How?
Hi,
We have 2 writer threads, each has a connection to Cache. When write records to Cache, we use PreparedStatement.executeBatch() with the batchSize 10 000.
We got very very slow insert speed.
But if only 1 writer thread used, the speed is faster, just as normal.
Any idea?
Hello everybody,
I have 15 years of experience in InterSystems Caché, Ensemble and IRIS and I am looking for opportunities to work as a remote freelancer.
I worked on large projects in Brazil in several segments as a developer and as an Interoperability architect.
My contact: fabio2wf@gmail.com
Thanks
Hello everyone,
I have a doubt, its possible to use interface like C# using COS?
Remember, interface is different from Abstract Class, because a abstract class can implement code in the method, so I don't want this, I want only define the methods from Class, not allowing implement code.
Description of C# interface: An interface defines a contract. Any
classorstructthat implements that contract must provide an implementation of the members defined in the interface. Beginning with C# 8.0, an interface may define a default implementation for members.
Hi,
I
want to get the values from a serial property because my code depends upon the class serial class.
For example
Serial class
Class Data.Serial Extends %SerialObject
{
Property FirstName as %String;
Property LastName as %String;
}
Persistent class
Class Data.Persistent Extends %Persistent
{
Property MPID as %Integer;
Property Name as Name.Serial;
}
Now i need save MPID and Name(Serial class property into SQL Table ) so i am trying the below class
Class Data.TestUtil Extends %RegisteredObject
{
Method Savedata(MPID,FirstName,LastName)
{
Set tSC=0
Set Obj=##Class(Data.Persistent).%New()
Set Obj.MPID=MPID
Set
Hello,
I'm currently struggeling with a HTTP request to a URL, which contains an jpeg image file.
Testing the request with a browser or Postman results in the image being shown normally.
Using a %Net.HttpRequest with different configurations has resulted in a corrupted file.
My code works for some URLs from other servers perfectly fine, but with some it produces corrupted file contents which do not represent a jpeg.
N REQ,STATUS,RET
Set REQ=##class(%Net.HttpRequest).%New()
Set REQ.Server="www.distrelec.de"
set REQ.SSLConfiguration="agimero.quwiki.de"
SET REQ.FollowRedirect=1
SET REQ.ContentT
I'm pleased to announce a milestone in the lifecycle of the ObjectScript package manager, ZPM. The package manager has offered developers the ability to neatly package up ObjectScript code and deployment configuration settings and version information in a convenient way. Over the last few years, it has evolved greatly into an integral part of many development workflows.
It has proven so important that InterSystems has decided to use it for packaging our own components, and that has led us to a decision to move the GitHub repository from the community into our corporate one, and rename it InterS
I am trying to work with Java Selenium through Cache my java programme works fine but I would like to pass parameters to the jar file form my Ensemble production. I followed this Tutorial here, For starters I wanted to copy it as it is and run that as an example but the (Stateless Service Mode Example) is not working within my eclipse environment with errors on the com.intersys.complaining about the service class.
want to use IIS as a web server and has configured both IIS & CSP Gateway unfortunately getting this error message .
Hi,
when I using ObjectScript Trigger Code , I want to get whether the fields has changed by using "{fieldName*C}" , actually, fieldName in "{fieldName*C}" is a real field name ,but in my code, fieldName is a variable as follows:
SET stat=##class(%SYSTEM.SQL).GetColumns(tableName,.byname,.bynum,1)
IF stat=1{
SET i=1WHILE$d(bynum(i)){
SET xColName=bynum(i)
SET valComp={xColName*C}
IF valComp=1{
SET oldVal=1//{xColName*O}SET newVal=2//{xColName*N}
&sql(INSERTINTO Yan.LogTableExt(Parref,ProperName,OldValue,NewValue) VALUESHi developers!
As a follow-up to my previous post on the Node.js Native API, I created a quick poll because it may be interesting to see what technologies developers are using in their applications around the world with IRIS & Caché. I put a poll below, just check all boxes you have used or plan to use with InterSystems technology.
Thank you all for your cooperation!
Hi
Can anyone explain how to display custom icons in a TablePane?
Andy
Recently there was an internal email thread on which SMTP server to use in demos. I thought I'd share the comments from that thread:
Person 2: I use https://www.hmailserver.com
Person 3: I, too, use hMailServer as a local SMTP server on my demo VMs, with a mail client (usually Outlook) also on the VM.So no need to connect out to an SMTP server on the Internet.
Hi Community,
I am working on sending Gmail with error details when any errors occurs in the ensemble production.
I am facing the below issues while doing it
1.I have Ens.Alert (Business process) using the class Ens.Alerting.AlertManager and Emailoperation (Business operation) using the class EnsLib.EMail.AlertOperation. here my business process is not sending the Alarm request to business operation eventhough i am using rule to connect the business operation
2.What are SMTP server details needs to given for Gmail?
Please let me know how to resolve these issues
Thanks,
Smythee
Hi Team,
How InterSystems cache calculate the license count based on process?
How to we determine the product required license count ?
Thanks
Rathinakumar
Hi,
I would like to use the XML Schema Wizard / %XML.Utils.SchemaReader to generate the Cache classes.
It seems Xerces has trouble with xs:import. XSD Source - DMP_Rheumatoide_Arthritis.xsd
Fehler: FEHLER #5373: Klasse 'DMP.cda.dmpclinicaldocumentheadertyp', von 'DMP.cda.levelone:property:clinicaldocumentheader' benutzt, existiert nicht
Abgeschlossen bei 2022-11-05 22:17:18
Maybe I can solve this problem by enabling this feature in Xerces somehow?
http://apache.org/xml/features/honour-all-schemaLocations
Is there any other way to work around this problem?
Best regards
Ruiyan Yu
** Revised Feb-12, 2018
While this article is about InterSystems IRIS, it also applies to Caché, Ensemble, and HealthShare distributions.
Introduction
Memory is managed in pages. The default page size is 4KB on Linux systems. Red Hat Enterprise Linux 6, SUSE Linux Enterprise Server 11, and Oracle Linux 6 introduced a method to provide an increased page size in 2MB or 1GB sizes depending on system configuration know as HugePages.
At first HugePages required to be assigned at boot time, and if not managed or calculated appropriately could result in wasted resources. As a result various Linux distributions introduced Transparent HugePages with the 2.6.38 kernel as enabled by default. This was meant as a means to automate creating, managing, and using HugePages. Prior kernel versions may have this feature as well however may not be marked as [always] and potentially set to [madvise].
Transparent Huge Pages (THP) is a Linux memory management system that reduces the overhead of Translation Lookaside Buffer (TLB) lookups on machines with large amounts of memory by using larger memory pages. However in current Linux releases THP can only map individual process heap and stack space.
Hi
I have a Zen Page with tablepane which has a datasource in a different namespace to that of the Zen Page. When the page is run, no data is returned and the tablepane is not populate, even though the rerferenced table contains dat.
The tablePane code is as follows:
<tablePaneid="DataExtractionCurrent"showZebra="true"cellSpacing="2px"OnCreateResultSet="DataExtractionCurrent"></tablePane>The OnCreateResultSet points to the following method:
Method DataExtractionCurrent(Output tSC As%Status, pInfo As%ZEN.Auxiliary.QueryInfo) As%ResultSet [ ZenMethod ]
{
new$namespaceseIn this article, I would show how you can upload and download files from InterSystems products via http.
The questions about working with files over http arise fairly often on community and I'm usually linking to my FileServer project which demonstrates file upload/download but I'd like to talk a bit more on how we can serve and receive files from InterSystems products.
If you have a file in on a file system and you know the path you can serve it from REST or CSP context by calling this method:
ClassMethod serve(name As %String) As %Status
{
#dim sc As %Status = $$$OKI was able to run the Cache terminal from the command prompt with the following command, in the namespace that I provided in the brackets:
cterm /console=cn_ap:ENSEMBLE[TEST_1]
But the command suddenly stopped opening the terminal in the correct namespace. It just opens it in the default namespace. I tried it with different namespaces or invalid namespaces, it always opens the terminal in the default namespace now.
I cannot figure out what is causing this behaviour.
Is there a way to add specific table permissions to a security role programmatically? I'm working on scripting some of the initial setup work when we sell certain add-ons to our software, and I see how I can assign resources to a role and give it a description, but I don't see how I tell it that this role gives the user, for example, SELECT privileges only on the invoices table, or SELECT, INSERT, UPDATE, and DELETE.
Do we have REST API documentation to retrieve the data available in InterSystems Cache.
I am looking for APIs that will help me to pull the data available in InterSystems Cache.
The topic of for/while loop performance in Caché ObjectScript came up in discussion recently, and I'd like to share some thoughts/best practices with the rest of the community. While this is a basic topic in itself, it's easy to overlook the performance implications of otherwise-reasonable approaches. In short, loops iterating over $ListBuild lists with $ListNext or over a local array with $Order are the fastest options.
As a motivating example, we will consider looping over the pieces of a comma-delimited string.
A natural way to write such a loop, in minimal code, is:
ForIs there any way to connect PHP Laravel 8 and Cache DB.
I am tried with one post found in DC, but that is not working for me also.
https://github.com/jeandormehl/laracache
If anyone has any suggestions please help me out in this.
Hello all; I am using a one-to-many relationship. I have a Claim (one), in a relationship with Lines (many), but the Claim is storing a list of Lines IDs, rather than the Lines storing the Claim Id. This seems upside down, and not what I expected.
Class Claim
{
Relationship ClaimLineRel as ClaimLine [Cardinality = many, Inverse = Claim];
}
Class ClaimLine
{
Relationship Claim as Claim [ Cardinality = one, Inverse = ClaimLineRel, OnDelete = cascade];
Index ClaimIndex on Claim;
}But the storage globals for Claim show data in the ClaimLine spot:
^ClaimD(1)=$lb("",$lb(2,3).
In Cache 2018, we were using a macro in a query that looked like this:
select $$GetExtraSQL^GetExtra('B',bddtl.odnumb,bddtl.odsnum,bddtl.oddsc1) as "Description", * from sqluser.bddtl
We could save that query as a view, and there was no problem with it.
In IRIS, if we put that query into SQL in the management portal, it still works, but if we save that query as a view, when we try to run a query on that view, we get a big error message:
ERROR #5540: SQLCODE: 400 Message: Process 604526 failed to compile Cached Query Class %sqlcq.R001.cls2136 with these errors: ERROR #5475: Error compiling