查找

公告
· 九月 26, 2024

DX Jetpack 2024 edition brings three new extensions to VS Code users

See the new team members in action:

Try them online for yourself:

https://gitpod.io#snapshot/b31bdf9c-4657-402a-a2d

Get it from the Extensions view inside VS Code, or here in Marketplace.

Vote for it here in the current Developer Tools 2024 contest (voting ends: 29 Sep, 2024, 11:59:59 PM EST).

Discuss it below.

Most of all, enjoy DX Jetpack with its added booster rockets!

讨论 (0)1
登录或注册以继续
问题
· 九月 26, 2024

inserting a row into a sql server table

I am trying to insert a single row into an external MS SQL Server table. I have set up the SQL Gateway. The insert query runs, but it is inserting an extra row each time. 

What am I missing:

#include %occInclude
set gc = ##class(%SQLGatewayConnection).%New()
if gc = $$$NULLOREF quit $$$ERROR($$$GeneralError, "Can not create sql gateway connection.")

set pDSN = "xxxx"
set usr = "xxx"
set pwd = "xxxx"
set sc = gc.Connect(pDSN,usr,pwd,0)
if $$$ISERR(sc) quit sc
if gc.ConnectionHandle = "" quit $$$ERROR($$$GeneralError,"connection failed") set sc=gc.AllocateStatement(.hstmt)
if $$$ISERR(sc) quit sc

pQuery="insert into testRx (RxIndex, PatientName, PatientStreet1, PatientCity, PatientState, PatientZipCode, PatientPhoneNumber, DrugName, DrugId, Quantity, DaysSupply, RefillText, Provider, SiteId) values ('500-12345-1','test,one','123 oak st','reno','nv','99999','5555555555','aspirin 81mg','A0008','90','90','(1of5)','provider,one','500')"
 

set sc = gc.Prepare(.hstmt,pQuery)

if $$$ISERR(sc) quit sc
set sc = gc.Execute(hstmt)

if $$$ISERR(sc) quit sc

sc
}
 

1 Comment
讨论 (1)1
登录或注册以继续
公告
· 九月 26, 2024

[Video] Setting Up SQL Foreign Key Constraints

Hi, Community!

Want to improve accuracy and data integrity in your relational databases? Learn a key strategy in this video:

Setting Up SQL Foreign Key Constraints

In this video, you will learn:

  • What foreign key constraints are, and how they support data integrity
  • A step-by-step process for setting up foreign key constraints in InterSystems IRIS® data platform.

Be sure to subscribe to the Learning Services YouTube channel!

讨论 (0)1
登录或注册以继续
问题
· 九月 26, 2024

CHARSET options for the FTP outbound adapter

Hi ,

I am sending my DTL response (which is an xml stream) to an FTP out location.

My XML stream has CRLF , but after sending FTP'ing out , it displays as LF

before writing it to FTP

 

At FTP out location

What Chatset will do it ? Currently Charset is set as Binary.

 

Appreciate quick response.

3 Comments
讨论 (3)1
登录或注册以继续
文章
· 九月 26, 2024 阅读大约需 1 分钟

How to change the instance (configuration) name

InterSystems FAQ rubric

On Windows, this cannot be changed, but on Unix-like platforms, it can be changed using the iris rename command.

iris rename instname(<current instance name>) newname(<new instane name>)

For more information about the iris rename command, please refer to the following document:

About the iris command
 

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