Hi
How to clean cachetemp/CACHE.DAT, without cache restart?
I have the procedure to clean cachetemp/CACHE.DAT in my scritp stop/start cache, but, in some cases, I need to clean this base without restart.
It's possible?
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hi
How to clean cachetemp/CACHE.DAT, without cache restart?
I have the procedure to clean cachetemp/CACHE.DAT in my scritp stop/start cache, but, in some cases, I need to clean this base without restart.
It's possible?
Is it possible to rename a Caché-Instance on Windows?
ccontrol doesnt work on a Windows system =/
Created by Daniel Kutac, Sales Engineer, InterSystems
Warning: if you get confused by URLs used: the original series used screens from machine called dk-gs2016. The new screenshots are taken from a different machine. You can safely treat url WIN-U9J96QBJSAG as if it was dk-gs2016.
Part 2. Authorization server, OpenID Connect server
In the previous part of this short series, we have learned about simple use case – acting as an OAUTH[1] client. Now, it’s time to bring our experience to a whole new level.
Hi All,
I would like to download odbc drivers for Cache database to be able to install it on our SQL server.
I am trying to create a linked server to Cache database.
I couldn't find a link for the drivers, there was one post with FTP reference to download but it doesn't seem to work.
I will be grateful for any help.
Thank you
Sap.
Is InterSystems ODBC driver backwards compatible? If I use cache version 2018, can I upgrade the ODBC drivers to the 2021 version or it is better to upgrade to the 2018?
I programmed some server command by my own. That server commands worked fine for a long time.
Suddonly I received
Studio Action "Attempted Edit" not supported on 127.0.0.1:57772[CTAE01]
by using one of my server commands.
There is an explanation:
Error running command vscode-objectscript.serverCommands.contextOther: Running the contributed command: 'vscode-objectscript.serverCommands.contextOther' failed.. This is likely caused by the extension that contributes vscode-objectscript.serverCommands.contextOther.
Can you help me to solve that issue?
When using an undimensioned array is there a way to write the array to a file? Something like this
DIM C()
C('TEST') = 2
C('WEST') = 5
C('BEST') = 1
WRITE C on myfile, 1Don't you wish a fresh, hot cup of coffee could be waiting for you right when you get into the office? Let's automate that!
Cache and IRIS come with a built-in Task Manager, which should have a familiar feel to those used to using the Windows task scheduler or using cron on Linux. Your user account will need access to the %Admin_Task resource to use it, and you can access it in the management portal under System Operation -> Task Manager. When first installed, there are roughly 20 types of task that you can schedule.
InterSystems kits include an Apache web server, which provides a convenient way for customers to interact with the Caché/IRIS Management Portal without needing to install an external web server; however, this web server should never be used for production instances, and customers must install a web server that fits their specific needs and security/risk requirements.
Recent tests have noted some security issues with the currently included Apache web server.
I often get this message when trying to attach to the routine second time. The only way I was able to fix this is by restarting the Cache server.
Then I can do debugging once, but second time, the error pops up again. Very annoying. Is there a way to fix that without restarting the server ?
Thank you
Dean Kavicki
I'm attempting to use the .NET Entity Framework provider that is provided by InterSystems (see: https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GBMP_eframe). In our environment, the "Support Delimited Identifiers" option is turned off and we are not allowed to turn it on without significant testing effort. When this setting is off, the SQL that is generated by the Entity Framework provider is not considered valid and therefore the provider doesn't work (it DOES work, however, when this setting is turned ON).
Do you know of any way to work around this issue?
Hi all,
I have a process that recive a datetime in ISO 8601 format (YYYY-MM-DDThh:mm:ss+001) to %timestamp value.
Example: set myDatetime = "2021-11-04T11:10:00+0100"
I've triyed use $SYSTEM.SQL.CONVERT(myDatetime,"SQL_TIMESTAMP") but it doesn't work.
Any idea?
Regards,
Kurro Lopez
I am trying to create a scheduled task but get not implemented error when I try to run it.
Class PICIS.Core.Tasks.CleanEntry Extends %RegisteredObject
{
ClassMethod ClearTasks(pBackupFile As %String = "d:\Temp\BackupTasks.xml", pDelete As %Boolean = 0)
{
// Create backup file
Set tBackup = ##class(%Stream.FileCharacter).%New()
Set tBackup.Filename = pBackupFile
Do tBackup.WriteLine("<?xml version=""1.0"" encoding=""UTF-8""?>")
Do tBackup.WriteLine("<Tasks>")
// Delete loop
Set tCount = 0
Set tSC = $$$OK
Set tRS = ##class(%SQL.Statement).
Hello,
How I can unpack rar archive with 7z program in COS?
[SQLCODE: <-400>:<Fatal error occurred>]
[Cache Error: <<MAXSTRING>zExecute+3^%sqlcq.LIM.cls1043369.1>]
[Location: <ServerLoop>]
[SQLCODE: <-400>:<Fatal error occurred>]
[Cache Error: <<MAXSTRING>zExecute+3^%sqlcq.LIM.cls1043369.1>]
[Location: <ServerLoop>]
at InterSystems.Data.CacheClient.CacheADOConnection.GetServerError(Int32 rc)
at InterSystems.Data.CacheClient.CacheADOConnection.processError(Int32 error, Int32 allowError)
at InterSystems.Data.CacheClient.InStream.readHeader(Int32 stmt_id, Int32 type, Int32 allowError)
at InterSystems.Data.CacheClient.CacheCommand.
InterSystems technologies are renowned for their high performing databases, which support the systems and operations of many organisations. However a key ingredient to this success is the quality and maintainability of their code.
The quality of code can impact everything from speed and ease of fixing bugs and making enhancements, to the overall performance of your organization and your ability to get ahead in the marketplace.
By ensuring your code is maintainable, you can reduce approximately 75% of the systems life cycle costs*. This is why, at George James Software, the solutions we build are always straightforward and written in high quality code - because we know that this solid foundation can positively impact the rest of your organization.
With a maintainable system you're able to reduce your overall maintenance as any issues that occur are significantly faster to identify and fix. This means you're free to allocate that time and budget to enhancements, enabling you to get the most value out of your applications and ultimately better support your organization.
Keep an eye out for our next few posts about what a maintainable system looks like and the tools that can help you keep your code maintainable, in order to help you to reduce those maintenance costs.
In my previous articles I demonstrated the steps to connect and retrieve data from Caché from Appeon PowerBuilder by using ODBC.
In this article I will demonstrated how to Save data to Caché with Appeon PowerBuilder (https://www.appeon.com/products/powerbuilder) by using ODBC .png)
I am using Company.cls from Samples-Data (https://github.com/intersystems/Samples-Data/tree/master/cls/Sample)
So Let's start:
Step 1 : First of all we need to establish a connection (https://community.intersystems.
Hey guys,
I need to create a .dbf file,
How can I create this type of file?
There is some lib or plugin to do that?
In the Caché Foundations course, students are learning about Caché Development and ObjectScript syntax at the same time. To help students complete the exercises, we provide an ObjectScript Quick Reference (aka "the Cheat Sheet").
It is not a reference for all of ObjectScript! It is a list of the ObjectScript commands and functions that students use during the course, along with common syntax for objects, collections, etc. It also contains some useful macros.
We are providing a pdf version to the Developer Community.
Hello!
While creating DBF file , I get unreadeable symbols. For example ╠┼╥└╦╦╙╨├╬┬
How set encode to WINDOWS-1251 ?
This code doesn't help
w $zconvert(fldValue,"O","CP1251")
Thank you!
Hi, I am new to InterSystems database. I am developing an application to display real time skillset statistic data, including max waiting time per skillset. I have access to the database through ODBC, using InterSystems ODBC driver. But I don't know from which table or view to get real time data of maximum waiting time per skillset. I appreciate any advices.
Hi
I am in the process of trying to implement version control software with studio. Has anyone got any recommendations (either Linux based/windows based) as a place to start I have installed Gitlab and I wanted to know whether anyone has come across any obstacles using this.
I was also wondering whether anyone has developed any hooks for Gitlab that works well with Studio as I would prefer if there was a more integrated solution with studio? Any help with this would be great.
Thank you.
Kind Regards,
Salma
In my previous article I demonstrated the steps to connect to Caché from Appeon PowerBuilder by using ODBC.
In this article I will demonstrated how to Retrieve data from Caché with Appeon PowerBuilder (https://www.appeon.com/products/powerbuilder) by using ODBC.png)
I am using Company.cls from Samples-Data (https://github.com/intersystems/Samples-Data/tree/master/cls/Sample)
So Let's start:
Step 1 : First of all we need to establish a connection (https://community.intersystems.
Hello,
I don't know if the title is accurate enough. I have a legacy code that I need to optimize. It's a routine written in objectscript. It accepts 4 parameters and runs 6 nested FOR...$ORDER reading a big global.
The thing is when I run the routine the first time it takes around 60 seconds to run. If I run it again it takes 5 seconds. If I wait around 6 to 10 minutes to run it again, it takes 60 seconds again, but if I run it every 1, 2, 3... minutes it still takes only 5 seconds to run.
Hi guys,
My client has a requirement to add a column of random numbers to the query result.
I wrote a function as below:
Class Utils.SqlUtility Extends %RegisteredObject
{
ClassMethod GetSomeNumber(intInput As %Integer) As %Integer [ SqlName = GetNumber, SqlProc ]
{
Return $R(intInput)
}
}
But in the returned sql result, every row share the same value, as below,
SELECT Utils.GetNumber('456'),
ID, Citizenship, DOB, FirstName, Gender, IDNumber, LastName, PatientNumber, PhoneNumber
FROM CDR.Patient
.png)
How may I refactor the function or sql to make the random value really random on each of the rows?
Thanks.
Hi community!
I want to introduce you a new powerful feature from our static code analyzer objectscriptQuality.
Each time a new IRIS version is released, you need to prepare a roadmap for migration in which you need to spend a lot of time on testing to find where your code is not accomplishing with the newer version. Or maybe you need your code to be compatible with multiple IRIS or Caché versions.
You can now simplify the task running the analysis for the different IRIS and Caché database versions, so you will get the failing code before you start to test.
I need to execute multiple DELETE statements in a single query like this
DELETE FROM TableName WHERE ID = 2;
DELETE FROM TableName WHERE ID = 3;
DELETE FROM TableName WHERE ID = 4;However It does not work when there're more than 2 statements and gives me an error
Expected FROM found WHERE^DELETE FROM TableName WHERE
Using IN is not an option.
We're hosting our Deltanji and Serenji user group session tomorrow - there's still time to register, if you haven't already.
We'll be showcasing some advanced features of Deltanji and Serenji in VS Code with time for a discussion - so feel free to bring along any problems you need help solving or share your feedback on our tools. We'd love to hear your thoughts. If you're interested in our tools this is a great chance to hear what others have to say, as well as asking your own questions.
Date: Wednesday, November 3rd
Time: 11-12pm EDT / 3-4pm GMT.
Let us know you'll be attending on Eventbrite.
We hope to see you tomorrow, but if you're unable to make it you can email me at laurelj@georgejames.com and I can share a recording of the session.
From terminal : _System account works fine where code=0
From Studio : _System account give syntax error where code=1
set code = $zf(-1,"python C:\keys\GetToken.py")
w !, code
I am relatively new to Intersystems cache database management. As I understand it, a database is set with a maximum size or unlimited and the size of each space allocation for the database is defined. My understanding is that the cache database will then manage the allotment of space to the database as the current space allocation is consumed. Though I do not know why one would want to do this, I have been told that the space allocation to a database can be set to be handled manually. This is something, if true, I was not aware of.