Connecting to InterSystems Cloud Services with .NET
See how to connect to InterSystems Cloud Services from your .NET application using the InterSystems ADO.NET Managed Provider.
See how to connect to InterSystems Cloud Services from your .NET application using the InterSystems ADO.NET Managed Provider.
Reference | Timestamp | Code |
---|---|---|
Add a dependency to an application. | 0:50 | using InterSystems.Data.IRISClient; |
Create a connection string variable. | 1:01 | string connectionstring = "Server = localhost; Port = 1972; Namespace =
User; User ID = SQLAdmin; Password = deployment-password"; |
Create the connection using the connection string. |
1:22 | IRISADDConnection connection = new IRISADDConnection(connectionString); |
Open the connection. | 1:24 | connection.Open() |
To connect to InterSystems Cloud Services, copy the code below and modify with your system's information:
using System; using InterSystems.Data.IRISClient; namespace ADODemo { internal class Program { static void Main(string[] args) { string connectionString = "Server = localhost; Port = 1972; Namespace = User; User ID = SQLAdmin; Password = deployment-password"; IRISADOConnection connection = new IRISADOConnection(connectionString); connection.Open(); // when finished, use the line below to close the connection // connection.Close(); } } }
Having an issue with the learning site? Want to provide feedback on a course? Contact us by emailing online.training@intersystems.com.
Please include all relevant information, including the page or course you are having trouble with, and any necessary screenshots.